From: Shawn Smith Date: Thu, 12 Apr 2012 13:32:44 +0000 (-0400) Subject: This fixes issue #39 reported by @attilamolnar. X-Git-Tag: v2.0.23~763^2 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cf89e72cd12486f8bbb1965cd5bd1e3eea4923d8;p=user%2Fhenk%2Fcode%2Finspircd.git This fixes issue #39 reported by @attilamolnar. Thanks to @attilamolnar for supplying the code. --- diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index dc2e3ae51..ea1d94291 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -78,7 +78,7 @@ CmdResult CommandWhois::Handle (const std::vector& 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; }