Closed faboussard closed 1 week ago
kick #k nick bla :nick KICK #k :bla :nick PART #k : say goodbye!
Tests conducted :
join #s :admin JOIN :#s :ircserv.localhost 331 admin #s :No topic is set :ircserv.localhost 353 admin #s :@admin :ircserv.localhost 366 admin #s :End of \NAMES list kick #s :ircserv.localhost 461 admin KICK :Not enough parameters kick :ircserv.localhost 461 admin KICK :Not enough parameters kick #s adm :ircserv.localhost 401 admin adm :No such nick/channel kick #s nick :ircserv.localhost 441 admin nick #s :They aren't on that channel :nick JOIN #s : say hello! kick #s nick :jojo :nick KICK #s :jojo :nick PART #s : say goodbye! :nick JOIN #s : say hello! kick #s nick jojo :nick KICK #s :jojo :nick PART #s : say goodbye!
now i am using the function broadcastInChannel for join and part : broadcastInChannel(client, channel, "PART", " say goodbye!");
Function called before or after the client's join/leave to avoid them receiving their own message.
Client *findClientByNickname(const std::string &nickname);
some functions were put in comments if not used: cleaning to be done at the end of the project ( with clion that highlights the unused functions)
valgrind OK
Tests conducted :
now i am using the function broadcastInChannel for join and part :
broadcastInChannel(client, channel, "PART", " say goodbye!");
Function called before or after the client's join/leave to avoid them receiving their own message.
Client *findClientByNickname(const std::string &nickname);
some functions were put in comments if not used: cleaning to be done at the end of the project ( with clion that highlights the unused functions)
valgrind OK