From 9249df4d2599c5e09ea209f416f51f36dbe5eec4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 6 Sep 2003 02:06:57 +0000 Subject: [PATCH] Made to ignore empty TOPICs just sent for information. --- plugins/ChannelLogger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ChannelLogger.py b/plugins/ChannelLogger.py index e8a18059f..c451537f6 100644 --- a/plugins/ChannelLogger.py +++ b/plugins/ChannelLogger.py @@ -153,6 +153,8 @@ class ChannelLogger(irclib.IrcCallback): ' '.join(msg.args[2:]))) def doTopic(self, irc, msg): + if len(msg.args) == 1: + return # It's an empty TOPIC just to get the current topic. channel = msg.args[0] log = self.getLog(channel) self.timestamp(log)