3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

ts6 (and derivatives): don't burst bans that were already set

This commit is contained in:
James Lu 2017-01-01 00:28:55 -08:00
parent 803ccf7708
commit dc11638eb9

View File

@ -113,6 +113,10 @@ class TS6Protocol(TS6BaseProtocol):
modechar = mode[0][-1]
if modechar in self.irc.cmodes['*A']:
# 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])
else:
regularmodes.append(mode)