mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Channel: add support for MODES= with no value in ISUPPORT.
Oragono uses that.
This commit is contained in:
parent
6c4a8edb9c
commit
ef59a033e3
@ -81,6 +81,9 @@ class Channel(callbacks.Plugin):
|
||||
|
||||
def _sendMsgs(self, irc, nicks, f):
|
||||
numModes = irc.state.supported.get('modes', 1)
|
||||
if numModes is None:
|
||||
# No limit enforced by the server, we're setting one ourselves.
|
||||
numModes = 5
|
||||
for i in range(0, len(nicks), numModes):
|
||||
irc.queueMsg(f(nicks[i:i + numModes]))
|
||||
irc.noReply()
|
||||
|
Loading…
Reference in New Issue
Block a user