Permalink
Browse files

Include the command name in ERR_INVALIDCAPCMD messages

As described in the IRCv3 Client Capability Negotiation document
(http://ircv3.org/specification/capability-negotiation-3.1).

(cherry picked from commit f215ec6)
  • Loading branch information...
1 parent 0e85418 commit 1ace1cd1abcb9a2e2d2f715150fb673526c29c86 @galdor galdor committed with DarthGandalf Jan 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Client.cpp
View
@@ -927,6 +927,6 @@ void CClient::HandleCap(const CString& sLine)
}
RespondCap("ACK :" + sList.TrimSuffix_n(" "));
} else {
- PutClient(":irc.znc.in 410 " + GetNick() + " :Invalid CAP subcommand");
+ PutClient(":irc.znc.in 410 " + GetNick() + " " + sSubCmd + " :Invalid CAP subcommand");
}
}

0 comments on commit 1ace1cd

Please sign in to comment.