diff --git a/cmds/pass.cpp b/cmds/pass.cpp index f0256a6..5d5362b 100644 --- a/cmds/pass.cpp +++ b/cmds/pass.cpp @@ -6,7 +6,7 @@ /* By: aortigos > args; if (client.isAuthenticated()) { + // Still need to find what server should reply to different errors std::string res = "You are already authenticated"; send(client.getFd(), res.c_str(), res.size(), 0); return ; @@ -26,6 +27,7 @@ void Server::pass_cmd(User &client, std::istringstream &ss) if (this->password_ == args) client->authenticated = true; else { + // Still need to find what server should reply to different errors std::string res = "Invalid password"; send(client.getFd(), res.c_str(), res.size(), 0); } diff --git a/tasks.md b/tasks.md index 4fb28d8..c77b939 100644 --- a/tasks.md +++ b/tasks.md @@ -48,7 +48,7 @@ Represents a connected IRC client. ### Fourth stage -- [ ]Client can create/connect to channels +- [ ] Client can create/connect to channels - [ ] JOIN command (user can create channel) - [ ] PRIVMSG command (send message to a channel)