From 7f40babccce4cacf9b79ae7865b60ab6d85033ad Mon Sep 17 00:00:00 2001 From: aortigos Date: Sun, 10 May 2026 22:45:40 +0200 Subject: [PATCH] comments for pass.cpp --- cmds/pass.cpp | 4 +++- tasks.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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)