mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Made IrcState handle empty TOPIC correctly.
This commit is contained in:
parent
9249df4d25
commit
7d01f9eeb3
@ -292,6 +292,8 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
channel.removeUser(msg.nick)
|
channel.removeUser(msg.nick)
|
||||||
|
|
||||||
def doTopic(self, irc, msg):
|
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 = self.channels[msg.args[0]]
|
||||||
chan.topic = msg.args[1]
|
chan.topic = msg.args[1]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user