Made IrcState handle empty TOPIC correctly.

This commit is contained in:
Jeremy Fincher 2003-09-06 02:09:02 +00:00
parent 9249df4d25
commit 7d01f9eeb3

View File

@ -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]