From 2fb9ac2024227463f2a76211b295617fddf0dd1f Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 7 Nov 2011 05:58:48 -0500 Subject: [PATCH] Fix IRC.do376's handling of supported state Signed-off-by: James McCoy (cherry picked from commit d6336421e0940120005b73676baf20560f4f8c78) Signed-off-by: Daniel Folkinshteyn --- src/irclib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 82248c7e0..e6aedc2c7 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -929,13 +929,13 @@ class Irc(IrcCommandDispatcher): # Let's reset nicks in case we had to use a weird one. self.alternateNicks = conf.supybot.nick.alternates()[:] umodes = conf.supybot.protocols.irc.umodes() - supported = self.supported.get('umodes') + supported = self.state.supported.get('umodes') if umodes: addSub = '+' if umodes[0] in '+-': (addSub, umodes) = (umodes[0], umodes[1:]) if supported: - umodes = [m for m in umodes if m in supported] + umodes = ''.join([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))