3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

unreal: demote mode bounce notices to DEBUG

This commit is contained in:
James Lu 2016-07-11 16:37:01 -07:00
parent 77edd9870c
commit 7c1a80708b

View File

@ -648,11 +648,11 @@ class UnrealProtocol(TS6BaseProtocol):
if parsedmodes:
if parsedmodes[0][0] == '+&':
# UnrealIRCd uses a & virtual mode to denote mode bounces, meaning that an attempt to set modes
# by us was rejected for some reason (usually due to timestamps). Warn about this and drop the
# mode change to prevent mode floods.
log.warning("(%s) Received mode bounce %s in channel %s! Our TS: %s",
self.irc.name, modes, channel, self.irc.channels[channel].ts)
# UnrealIRCd uses a & virtual mode to denote mode bounces, meaning that an
# attempt to set modes by us was rejected for some reason (usually due to
# timestamps). Drop the mode change to prevent mode floods.
log.debug("(%s) Received mode bounce %s in channel %s! Our TS: %s",
self.irc.name, modes, channel, self.irc.channels[channel].ts)
return
self.irc.applyModes(channel, parsedmodes)