mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +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)
|
chan.ops.discard(value)
|
||||||
elif mode == '+o':
|
elif mode == '+o':
|
||||||
chan.ops.add(value)
|
chan.ops.add(value)
|
||||||
if mode == '-h':
|
elif mode == '-h':
|
||||||
chan.halfops.discard(value)
|
chan.halfops.discard(value)
|
||||||
elif mode == '+h':
|
elif mode == '+h':
|
||||||
chan.halfops.add(value)
|
chan.halfops.add(value)
|
||||||
if mode == '-v':
|
elif mode == '-v':
|
||||||
chan.voices.discard(value)
|
chan.voices.discard(value)
|
||||||
elif mode == '+v':
|
elif mode == '+v':
|
||||||
chan.voices.add(value)
|
chan.voices.add(value)
|
||||||
elif mode[-1] in 'beq':
|
elif mode[-1] in 'beq':
|
||||||
pass # We don't need this right now.
|
pass # We don't need this right now.
|
||||||
else:
|
else:
|
||||||
|
print '*****', mode
|
||||||
modeChar = mode[1]
|
modeChar = mode[1]
|
||||||
if mode[0] == '+':
|
if mode[0] == '+':
|
||||||
chan.setMode(modeChar, value)
|
chan.setMode(modeChar, value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user