From ab9365f172dbd697bf959f3f79275b30b5b6091e Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 6 Nov 2011 22:20:55 -0500 Subject: [PATCH] Fix filtering of unsupported umodes Signed-off-by: James McCoy (cherry picked from commit 3bfda3cc7ac52ff0fd13150f044f9b5b9c4f03e2) Signed-off-by: Daniel Folkinshteyn --- src/irclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index ffded1652..4989312e5 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -935,7 +935,7 @@ class Irc(IrcCommandDispatcher): if umodes[0] in '+-': (addSub, umodes) = (umodes[0], umodes[1:]) if supported: - umodes = filter(lamda m: m in supported, umodes) + umodes = [m for m in umodes if m in supported] umodes = ''.join(addSub, umodes) log.info('Sending user modes to %s: %s', self.network, umodes) self.sendMsg(ircmsgs.mode(self.nick, umodes))