reconstructing code
This commit is contained in:
58
Client.cpp
58
Client.cpp
@@ -8,60 +8,30 @@ Client::~Client() {}
|
||||
|
||||
int Client::getFd() const {return _fd;}
|
||||
|
||||
void Client::setPassword(const std::string& password) {
|
||||
pass = password;
|
||||
}
|
||||
void Client::setPassword(const std::string& password) {pass = password;}
|
||||
|
||||
std::string Client::getPassowrd() const {
|
||||
return pass;
|
||||
}
|
||||
std::string Client::getPassowrd() const {return pass;}
|
||||
|
||||
std::string Client::getName() const {
|
||||
return name;
|
||||
}
|
||||
std::string Client::getName() const {return name;}
|
||||
|
||||
void Client::setName(const std::string& newName) {
|
||||
name = newName;
|
||||
}
|
||||
void Client::setName(const std::string& newName) {name = newName;}
|
||||
|
||||
std::string Client::getNick() const {
|
||||
return nick;
|
||||
}
|
||||
std::string Client::getNick() const {return nick;}
|
||||
|
||||
void Client::setNick(const std::string& newNick) {
|
||||
nick = newNick;
|
||||
}
|
||||
void Client::setNick(const std::string& newNick) {nick = newNick;}
|
||||
|
||||
std::string Client::getUser() const {
|
||||
return user;
|
||||
}
|
||||
std::string Client::getUser() const {return user;}
|
||||
|
||||
void Client::setUser(const std::string& newUser) {
|
||||
user = newUser;
|
||||
}
|
||||
void Client::setUser(const std::string& newUser) {user = newUser;}
|
||||
|
||||
int Client::getAuthentication() const {
|
||||
return _authentication;
|
||||
}
|
||||
int Client::getAuthentication() const {return _authentication;}
|
||||
|
||||
void Client::setAuthentication(int auth) {
|
||||
_authentication = auth;
|
||||
}
|
||||
void Client::setAuthentication(int auth) {_authentication = auth;}
|
||||
|
||||
const std::string& Client::getCommand() const {return command;}
|
||||
|
||||
const std::string& Client::getCommand() const {
|
||||
return command;
|
||||
}
|
||||
void Client::clearCommand() {command = "";}
|
||||
|
||||
void Client::clearCommand() {
|
||||
command.clear();
|
||||
command = "";
|
||||
}
|
||||
void Client::appendCommand(std::string str) {command += str;}
|
||||
|
||||
void Client::appendCommand(std::string str) {
|
||||
command += str;
|
||||
}
|
||||
|
||||
void Client::setCommand(std::string cmd) {
|
||||
command = cmd;
|
||||
}
|
||||
void Client::setCommand(std::string cmd) {command = cmd;}
|
Reference in New Issue
Block a user