]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
This fixes issue #39 reported by @attilamolnar.
authorShawn Smith <ShawnSmith0828@gmail.com>
Thu, 12 Apr 2012 13:32:44 +0000 (09:32 -0400)
committerShawn Smith <ShawnSmith0828@gmail.com>
Thu, 12 Apr 2012 14:22:49 +0000 (10:22 -0400)
Thanks to @attilamolnar for supplying the code.

src/commands/cmd_whois.cpp

index dc2e3ae5194c93df3ecb13b2878dacdfc76ebc99..ea1d942916813bed92c4f6b92976e331c0c09fa8 100644 (file)
@@ -78,7 +78,7 @@ CmdResult CommandWhois::Handle (const std::vector<std::string>& parameters, User
        {
                /* no such nick/channel */
                user->WriteNumeric(401, "%s %s :No such nick/channel",user->nick.c_str(), !parameters[userindex].empty() ? parameters[userindex].c_str() : "*");
-               user->WriteNumeric(318, "%s %s :End of /WHOIS list.",user->nick.c_str(), parameters[userindex].empty() ? parameters[userindex].c_str() : "*");
+               user->WriteNumeric(318, "%s %s :End of /WHOIS list.",user->nick.c_str(), !parameters[userindex].empty() ? parameters[userindex].c_str() : "*");
                return CMD_FAILURE;
        }