mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fixed bug in IrcState.doTopic (#1033955)
This commit is contained in:
parent
a6f7dc99b7
commit
c2445cc7db
@ -485,8 +485,11 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
def doTopic(self, irc, msg):
|
def doTopic(self, irc, msg):
|
||||||
if len(msg.args) == 1:
|
if len(msg.args) == 1:
|
||||||
return # Empty TOPIC for information. Does not affect state.
|
return # Empty TOPIC for information. Does not affect state.
|
||||||
chan = self.channels[msg.args[0]]
|
try:
|
||||||
chan.topic = msg.args[1]
|
chan = self.channels[msg.args[0]]
|
||||||
|
chan.topic = msg.args[1]
|
||||||
|
except KeyError:
|
||||||
|
pass # We don't have to be in a channel to send a TOPIC.
|
||||||
|
|
||||||
def do332(self, irc, msg):
|
def do332(self, irc, msg):
|
||||||
chan = self.channels[msg.args[1]]
|
chan = self.channels[msg.args[1]]
|
||||||
|
Loading…
Reference in New Issue
Block a user