From 6f8e3d37aa173d60cff7fb56999b996ccc08a6c6 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 10 Jul 2005 18:27:40 +0000 Subject: [PATCH] src/irclib: Let's not override the name for the set type. --- src/irclib.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 5d190aa88..7df0a4506 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -290,24 +290,24 @@ class ChannelState(object): def doMode(self, msg): def getSet(c): if c == 'o': - set = self.ops + Set = self.ops elif c == 'v': - set = self.voices + Set = self.voices elif c == 'h': - set = self.halfops + Set = self.halfops elif c == 'b': - set = self.bans + Set = self.bans else: # We don't care yet, so we'll just return an empty set. - set = set() - return set + Set = set() + return Set for (mode, value) in ircutils.separateModes(msg.args[1:]): (action, modeChar) = mode if modeChar in 'ovhbeq': # We don't handle e or q yet. - set = getSet(modeChar) + Set = getSet(modeChar) if action == '-': - set.discard(value) + Set.discard(value) elif action == '+': - set.add(value) + Set.add(value) else: if action == '+': self.setMode(modeChar, value)