-storing the channel in another file with the channel requirment and the client : it's when registerd in the irssi client with the pass and the nick and the user all this data stored in the client file and make the irssi client connecte with the server , after tha handle the join commande to make the user join a channel and handle the brodcast msg to all the clients in the channel
This commit is contained in:
18
Client.hpp
18
Client.hpp
@@ -6,6 +6,10 @@
|
||||
class Client {
|
||||
private:
|
||||
int _fd;
|
||||
std::string pass;
|
||||
std::string name;
|
||||
std::string nick;
|
||||
std::string user;
|
||||
std::string _addr;
|
||||
bool _isRegistered;
|
||||
public:
|
||||
@@ -14,6 +18,20 @@ class Client {
|
||||
~Client();
|
||||
|
||||
int getFd() const;
|
||||
std::string getPassowrd() const;
|
||||
void setPassword(const std::string& password); // Function to set the password
|
||||
// Getter and setter for name
|
||||
std::string getName() const;
|
||||
void setName(const std::string& newName);
|
||||
|
||||
// Getter and setter for nick
|
||||
std::string getNick() const;
|
||||
void setNick(const std::string& newNick);
|
||||
|
||||
// Getter and setter for user
|
||||
std::string getUser() const;
|
||||
void setUser(const std::string& newUser);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user