mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Topic: switch 'remove' to many instead of commalist
This commit is contained in:
parent
e09f2ed815
commit
465fe857bc
@ -462,7 +462,7 @@ class Topic(callbacks.Plugin):
|
|||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def remove(self, irc, msg, args, channel, numbers):
|
def remove(self, irc, msg, args, channel, numbers):
|
||||||
"""[<channel>] <comma separated list of numbers>
|
"""[<channel>] <number1> [<number2> <number3>...]
|
||||||
|
|
||||||
Removes topics <numbers> from the topic for <channel> Topics are
|
Removes topics <numbers> from the topic for <channel> Topics are
|
||||||
numbered starting from 1; you can also use negative indexes to refer
|
numbered starting from 1; you can also use negative indexes to refer
|
||||||
@ -481,7 +481,7 @@ class Topic(callbacks.Plugin):
|
|||||||
topics[n] = ''
|
topics[n] = ''
|
||||||
topics = [topic for topic in topics if topic != '']
|
topics = [topic for topic in topics if topic != '']
|
||||||
self._sendTopics(irc, channel, topics)
|
self._sendTopics(irc, channel, topics)
|
||||||
remove = wrap(remove, ['canChangeTopic', commalist('topicNumber')])
|
remove = wrap(remove, ['canChangeTopic', many('topicNumber')])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def lock(self, irc, msg, args, channel):
|
def lock(self, irc, msg, args, channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user