Fixed some bad calls to setMode.

This commit is contained in:
Jeremy Fincher 2004-07-31 08:40:31 +00:00
parent c3faaca835
commit e64444ce56

View File

@ -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)