mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01:00
relay: only reverse modes for CLAIM if there are any to reverse
This commit is contained in:
parent
3e19e9c3f1
commit
cfa2cda885
@ -1132,7 +1132,8 @@ def handle_mode(irc, numeric, command, args):
|
||||
reversed_modes = irc.reverseModes(target, modes, oldobj=oldchan)
|
||||
log.debug('(%s) relay.handle_mode: Reversing mode changes of %r with %r (CLAIM).',
|
||||
irc.name, modes, reversed_modes)
|
||||
irc.proto.mode(irc.sid, target, reversed_modes)
|
||||
if reversed_modes:
|
||||
irc.proto.mode(irc.sid, target, reversed_modes)
|
||||
break
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user