mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Fixed some bad calls to setMode.
This commit is contained in:
parent
c3faaca835
commit
e64444ce56
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user