3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-18 08:02:51 +01:00

updateTS: skip applying modes if there aren't any

This commit is contained in:
James Lu 2016-06-25 12:54:56 -07:00
parent 2b0dd0f746
commit 5e16eeea41

View File

@ -1076,6 +1076,7 @@ class Protocol():
p.clear() p.clear()
def _apply(): def _apply():
if modes:
log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name, log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name,
channel) channel)
self.irc.applyModes(channel, modes) self.irc.applyModes(channel, modes)