add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false.

This commit is contained in:
Daniel Folkinshteyn 2010-03-22 01:06:02 -04:00 committed by Valentin Lorentz
parent f71464adb3
commit 2b5ffaa940

View File

@ -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