mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
ts6 (and derivatives): don't burst bans that were already set
This commit is contained in:
parent
803ccf7708
commit
dc11638eb9
@ -113,6 +113,10 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
modechar = mode[0][-1]
|
modechar = mode[0][-1]
|
||||||
if modechar in self.irc.cmodes['*A']:
|
if modechar in self.irc.cmodes['*A']:
|
||||||
# Mode character is one of 'beIq'
|
# Mode character is one of 'beIq'
|
||||||
|
if (modechar, mode[1]) in self.irc.channels[channel].modes:
|
||||||
|
# Don't reset modes that are already set.
|
||||||
|
continue
|
||||||
|
|
||||||
banmodes[modechar].add(mode[1])
|
banmodes[modechar].add(mode[1])
|
||||||
else:
|
else:
|
||||||
regularmodes.append(mode)
|
regularmodes.append(mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user