mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Fix filtering of unsupported umodes
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
c91916ae5e
commit
3bfda3cc7a
@ -934,7 +934,7 @@ class Irc(IrcCommandDispatcher):
|
|||||||
if umodes[0] in '+-':
|
if umodes[0] in '+-':
|
||||||
(addSub, umodes) = (umodes[0], umodes[1:])
|
(addSub, umodes) = (umodes[0], umodes[1:])
|
||||||
if supported:
|
if supported:
|
||||||
umodes = filter(lamda m: m in supported, umodes)
|
umodes = [m for m in umodes if m in supported]
|
||||||
umodes = ''.join(addSub, umodes)
|
umodes = ''.join(addSub, umodes)
|
||||||
log.info('Sending user modes to %s: %s', self.network, umodes)
|
log.info('Sending user modes to %s: %s', self.network, umodes)
|
||||||
self.sendMsg(ircmsgs.mode(self.nick, umodes))
|
self.sendMsg(ircmsgs.mode(self.nick, umodes))
|
||||||
|
Loading…
Reference in New Issue
Block a user