One last fix to umode filtering.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
James McCoy 2011-11-13 15:10:16 -05:00
parent d6336421e0
commit 4833976294

View File

@ -935,7 +935,7 @@ class Irc(IrcCommandDispatcher):
(addSub, umodes) = (umodes[0], umodes[1:]) (addSub, umodes) = (umodes[0], umodes[1:])
if supported: if supported:
umodes = ''.join([m for m in umodes if m in supported]) umodes = ''.join([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))
do377 = do422 = do376 do377 = do422 = do376