3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +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,9 +1076,10 @@ class Protocol():
p.clear() p.clear()
def _apply(): def _apply():
log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name, if modes:
channel) log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name,
self.irc.applyModes(channel, modes) channel)
self.irc.applyModes(channel, modes)
our_ts = self.irc.channels[channel].ts our_ts = self.irc.channels[channel].ts