mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
rest()ify Topic.set since we no longer combine all remaining args
This commit is contained in:
parent
b744ab696c
commit
ecc61d3cbd
@ -213,7 +213,7 @@ class Topic(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
topics.append(topic)
|
topics.append(topic)
|
||||||
self._sendTopics(irc, channel, topics)
|
self._sendTopics(irc, channel, topics)
|
||||||
add = wrap(add, ['canChangeTopic', 'topic'])
|
add = wrap(add, ['canChangeTopic', rest('topic')])
|
||||||
|
|
||||||
def insert(self, irc, msg, args):
|
def insert(self, irc, msg, args):
|
||||||
"""[<channel>] <topic>
|
"""[<channel>] <topic>
|
||||||
@ -319,7 +319,7 @@ class Topic(callbacks.Privmsg):
|
|||||||
self._sendTopics(irc, channel, topics)
|
self._sendTopics(irc, channel, topics)
|
||||||
set = wrap(set, ['canChangeTopic',
|
set = wrap(set, ['canChangeTopic',
|
||||||
optional('topicNumber', 0),
|
optional('topicNumber', 0),
|
||||||
('topic', False)])
|
rest(('topic', False))])
|
||||||
|
|
||||||
def remove(self, irc, msg, args, channel, number):
|
def remove(self, irc, msg, args, channel, number):
|
||||||
"""[<channel>] <number>
|
"""[<channel>] <number>
|
||||||
|
Loading…
Reference in New Issue
Block a user