-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:
36
Client.cpp
36
Client.cpp
@@ -7,3 +7,39 @@ Client::Client(int fd, std::string addr) : _fd(fd), _addr(addr) {}
|
||||
Client::~Client() {}
|
||||
|
||||
int Client::getFd() const {return _fd;}
|
||||
|
||||
|
||||
void Client::setPassword(const std::string& password) {
|
||||
pass = password;
|
||||
}
|
||||
|
||||
std::string Client::getPassowrd() const {
|
||||
return pass;
|
||||
}
|
||||
|
||||
// Implementation of getter and setter functions for name
|
||||
std::string Client::getName() const {
|
||||
return name;
|
||||
}
|
||||
|
||||
void Client::setName(const std::string& newName) {
|
||||
name = newName;
|
||||
}
|
||||
|
||||
// Implementation of getter and setter functions for nick
|
||||
std::string Client::getNick() const {
|
||||
return nick;
|
||||
}
|
||||
|
||||
void Client::setNick(const std::string& newNick) {
|
||||
nick = newNick;
|
||||
}
|
||||
|
||||
// Implementation of getter and setter functions for user
|
||||
std::string Client::getUser() const {
|
||||
return user;
|
||||
}
|
||||
|
||||
void Client::setUser(const std::string& newUser) {
|
||||
user = newUser;
|
||||
}
|
Reference in New Issue
Block a user