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
parent 56862da549
commit bb44d433f5

View File

@ -74,6 +74,15 @@ class Reply(callbacks.Plugin):
irc.reply(text, prefixNick=True)
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