Fixed NameError in topic.

This commit is contained in:
Jeremy Fincher 2003-06-02 05:42:57 +00:00
parent 00d186cc42
commit c5e1e8e89a

View File

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