diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-04-12 11:50:29 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-04-12 11:50:29 -0700 |
commit | 9fbbdba61825a2316aa71492138059fd4d157217 (patch) | |
tree | b592ff1c4afd3cbbd0b3e074fe73ceb4999da3a0 | |
parent | b1c14f0b7404c3a920eca38ebd25b304cef76ae6 (diff) | |
parent | cf89e72cd12486f8bbb1965cd5bd1e3eea4923d8 (diff) |
Merge pull request #43 from Shawn-Smith/insp20+whoisfix
[2.0] Fix for issue #39 (Wrong output on whois)
-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; } |