From bb44d433f54ceb9a779ed4549ed6c8b70493f71d Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 22 Mar 2010 01:06:02 -0400 Subject: [PATCH] add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false. --- plugins/Reply/plugin.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/Reply/plugin.py b/plugins/Reply/plugin.py index 9b0a6db4a..a49018a98 100644 --- a/plugins/Reply/plugin.py +++ b/plugins/Reply/plugin.py @@ -73,7 +73,16 @@ class Reply(callbacks.Plugin): """ irc.reply(text, prefixNick=True) reply = wrap(reply, ['text']) - + + def replies(self, irc, msg, args, strings): + """ [ ...] + + Replies with each of its arguments in separate replies, depending + the configuration of supybot.reply.oneToOne. + """ + irc.replies(strings) + replies = wrap(replies, [many('something')]) + Class = Reply