diff --git a/cmds/privmsg.cpp b/cmds/privmsg.cpp index bee0ba6..6dc5eb3 100644 --- a/cmds/privmsg.cpp +++ b/cmds/privmsg.cpp @@ -6,7 +6,7 @@ /* By: aortigos ::iterator it = clients_.begin(); it != clients_.end(); it++) { if (it->second.getNick() == channel) - { return (it->second.send(":" + client.getNick() + "!" + client.getUsername() + "@localhost PRIVMSG " + channel + " :" + message + "\r\n")); - } } - return (client.send(":" SERVER_NAME " 401 " + client.getNick() + " " + channel + " :No such nick\r\n")); + client.send(":" SERVER_NAME " 401 " + client.getNick() + " " + channel + " :No such nick\r\n"); } }