From 7d01f9eeb38a42d9b6e42a7ba6843e681117c3cd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 6 Sep 2003 02:09:02 +0000 Subject: [PATCH] Made IrcState handle empty TOPIC correctly. --- src/irclib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/irclib.py b/src/irclib.py index 22448a973..4e7e1d472 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -292,6 +292,8 @@ class IrcState(IrcCommandDispatcher): channel.removeUser(msg.nick) def doTopic(self, irc, msg): + if len(msg.args) == 1: + return # Empty TOPIC for information. Does not affect state. chan = self.channels[msg.args[0]] chan.topic = msg.args[1]