mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false.
This commit is contained in:
parent
f71464adb3
commit
2b5ffaa940
@ -79,6 +79,16 @@ class Reply(callbacks.Plugin):
|
||||
"""
|
||||
irc.reply(text, prefixNick=True)
|
||||
reply = wrap(reply, ['text'])
|
||||
|
||||
@internationalizeDocstring
|
||||
def replies(self, irc, msg, args, strings):
|
||||
"""<str> [<str> ...]
|
||||
|
||||
Replies with each of its arguments <str> in separate replies, depending
|
||||
the configuration of supybot.reply.oneToOne.
|
||||
"""
|
||||
irc.replies(strings)
|
||||
replies = wrap(replies, [many('something')])
|
||||
Reply = internationalizeDocstring(Reply)
|
||||
|
||||
Class = Reply
|
||||
|
Loading…
Reference in New Issue
Block a user