]> arthur.barton.de Git - ngircd.git/commit
MODE: don't report error on "more modes than parameters"
authorAlexander Barton <alex@barton.de>
Sun, 13 Jan 2013 15:52:00 +0000 (16:52 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 13 Feb 2013 21:11:14 +0000 (22:11 +0100)
commit121bcacb9889bb6318a508586f364647500a64e3
tree34d7076d6aaa52c5799be76f886078408856347a
parent4105635566b3b2d8bd56f0ce1e556d5c3642f319
MODE: don't report error on "more modes than parameters"

Don't report ERR_NEEDMOREPARAMS(461) when a MDOE command with more modes
than nicknames is handled, as well as for channel limit and key changes
without specifying the limit or key parameters.

This is how a lot (all?) other IRC servers behave, including ircd2.11,
InspIRCd, and ircd-seven. And because of clients (tested with Textual and
mIRC) sending bogus MODE commands like "MODE -ooo nick", end-users got the
expected result as well as correct but misleading error messages ...

If ngIRCd is compiled using "strict mode", these errors are still reported.

Reported-by: Tim <tim@stackwatch.net>
(cherry picked from commit d8f2964710985597281de73aecd0a1ece30ecb03)
src/ngircd/irc-mode.c