mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false.
This commit is contained in:
parent
56862da549
commit
bb44d433f5
@ -73,7 +73,16 @@ class Reply(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
irc.reply(text, prefixNick=True)
|
irc.reply(text, prefixNick=True)
|
||||||
reply = wrap(reply, ['text'])
|
reply = wrap(reply, ['text'])
|
||||||
|
|
||||||
|
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')])
|
||||||
|
|
||||||
Class = Reply
|
Class = Reply
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user