diff options
author | Shawn Smith <ShawnSmith0828@gmail.com> | 2012-04-12 09:32:44 -0400 |
---|---|---|
committer | Shawn Smith <ShawnSmith0828@gmail.com> | 2012-04-12 10:22:49 -0400 |
commit | cf89e72cd12486f8bbb1965cd5bd1e3eea4923d8 (patch) | |
tree | 6580f67d56b4370682cc0fba461cc192609ac7ce | |
parent | d6067d1d4a313222d251b4ad7f292f154afe5532 (diff) |
This fixes issue #39 reported by @attilamolnar.
Thanks to @attilamolnar for supplying the code.
-rw-r--r-- | src/commands/cmd_whois.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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; } |