]> arthur.barton.de Git - ngircd-alex.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>
Sun, 13 Jan 2013 16:18:04 +0000 (17:18 +0100)
commitd8f2964710985597281de73aecd0a1ece30ecb03
tree5262ce4c79ee759af4ae93b127e991f2438d97f2
parentab009976984ede815c31c9a6b318c80006823b81
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>
src/ngircd/irc-mode.c