mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed NameError in topic.
This commit is contained in:
parent
00d186cc42
commit
c5e1e8e89a
@ -111,7 +111,7 @@ class Topic(callbacks.Privmsg):
|
||||
except ValueError:
|
||||
irc.error(msg, 'The argument must be a valid integer.')
|
||||
return
|
||||
topics = irc.state.getTopic(channel).split(self.topicSeparator)
|
||||
topics = irc.state.getTopic(msg.args[0]).split(self.topicSeparator)
|
||||
try:
|
||||
irc.reply(msg, topics[i])
|
||||
except IndexError:
|
||||
|
Loading…
Reference in New Issue
Block a user