]> arthur.barton.de Git - ngircd-alex.git/commit - src/ngircd/irc-mode.c
channel modes: only handle MAX_CMODES_ARG modes with arguments
authorAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 16:27:29 +0000 (17:27 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 16:27:29 +0000 (17:27 +0100)
commit98493077a2d044aa08ee5cb4bd7054579e30fb57
tree5ed0491414555f07c712e7c8a54365bf6b86ab88
parent1fa2af5b3a95cad24c3e8b56ee7e57aa5084bfdb
channel modes: only handle MAX_CMODES_ARG modes with arguments

Limit the MODE command to handle a maximum of MAX_CMODES_ARG (5) channel
modes that require an argument (+Ibkl) per call.

Please note: Further modes that require arguments are silently ignored
and end the handling of any further modes.
This is similar to the behavior of ircd2.11 (silently ignores but seems
to handle other modes) as well as ircd-seven (silently ignores but handles
some(!) other modes) ...
src/ngircd/defines.h
src/ngircd/irc-mode.c