From 5e16eeea41857d7bc2ab77329df5c764c51273a4 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 25 Jun 2016 12:54:56 -0700 Subject: [PATCH] updateTS: skip applying modes if there aren't any --- classes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes.py b/classes.py index b309ea7..92e78e6 100644 --- a/classes.py +++ b/classes.py @@ -1076,9 +1076,10 @@ class Protocol(): p.clear() def _apply(): - log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name, - channel) - self.irc.applyModes(channel, modes) + if modes: + log.debug("(%s) Applying modes on channel %s (TS ok)", self.irc.name, + channel) + self.irc.applyModes(channel, modes) our_ts = self.irc.channels[channel].ts