limit !flags mode changes to 3-per-line, add comment as to why
This commit is contained in:
parent
8ac0fce53f
commit
2d7a192a6c
1 changed files with 3 additions and 1 deletions
|
@ -309,7 +309,9 @@ class Module(ModuleManager.BaseModule):
|
|||
modes.append(("b", self._get_hostmask(channel, user)))
|
||||
kick_reason = "User is banned from this channel"
|
||||
|
||||
for chunk in self._chunk(modes, 4):
|
||||
# break up in to chunks of (maximum) 3
|
||||
# https://tools.ietf.org/html/rfc2812.html#section-3.2.3
|
||||
for chunk in self._chunk(modes, 3):
|
||||
chars, args = list(zip(*chunk))
|
||||
channel.send_mode("+%s" % "".join(chars), list(args))
|
||||
if not kick_reason == None:
|
||||
|
|
Loading…
Reference in a new issue