This commit is contained in:
Jeremy Fincher 2004-10-19 03:07:25 +00:00
parent e826ebde49
commit 98e6e9a1d7
1 changed files with 4 additions and 2 deletions

View File

@ -262,7 +262,7 @@ class Topic(callbacks.Privmsg):
return return
newtopics = [topics[i] for i in numbers] newtopics = [topics[i] for i in numbers]
self._sendTopics(irc, channel, newtopics) self._sendTopics(irc, channel, newtopics)
reorder = wrap(reorder, ['canChangeTopic', 'topicNumber+']) reorder = wrap(reorder, ['canChangeTopic', many('topicNumber')])
def list(self, irc, msg, args, channel): def list(self, irc, msg, args, channel):
"""[<channel>] """[<channel>]
@ -317,7 +317,9 @@ class Topic(callbacks.Privmsg):
else: else:
topics = [topic] topics = [topic]
self._sendTopics(irc, channel, topics) self._sendTopics(irc, channel, topics)
set = wrap(set, ['canChangeTopic', ('topicNumber?', 0), ('topic', False)]) set = wrap(set, ['canChangeTopic',
optional('topicNumber', 0),
('topic', False)])
def remove(self, irc, msg, args, channel, number): def remove(self, irc, msg, args, channel, number):
"""[<channel>] <number> """[<channel>] <number>