From e64444ce561bd9870f2f5b4cdc8c404d3f22997c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 31 Jul 2004 08:40:31 +0000 Subject: [PATCH] Fixed some bad calls to setMode. --- src/irclib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index b68550506..228fe7715 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -348,17 +348,18 @@ class IrcState(IrcCommandDispatcher): chan.ops.discard(value) elif mode == '+o': chan.ops.add(value) - if mode == '-h': + elif mode == '-h': chan.halfops.discard(value) elif mode == '+h': chan.halfops.add(value) - if mode == '-v': + elif mode == '-v': chan.voices.discard(value) elif mode == '+v': chan.voices.add(value) elif mode[-1] in 'beq': pass # We don't need this right now. else: + print '*****', mode modeChar = mode[1] if mode[0] == '+': chan.setMode(modeChar, value)