From 15e387ea469c06077268e68e0c11c8ec164ed4db Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 20 Feb 2016 12:57:04 +0100 Subject: [PATCH] Make irc.replies return all results in a single line by default (instead of following the conf), if used in a nested command. Closes GH-219. --- src/callbacks.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 74d1041d8..5c0642351 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -991,6 +991,14 @@ class NestedCommandsIrcProxy(ReplyIrcProxy): self.args[self.counter] = s self.evalArgs() + def replies(self, L, prefixer=None, joiner=None, + onlyPrefixFirst=False, to=None, + oneToOne=None, **kwargs): + if not self.finalEvaled and oneToOne is None: + oneToOne = True + return super(NestedCommandsIrcProxy, self).replies(L, + prefixer, joiner, onlyPrefixFirst, to, oneToOne, **kwargs) + def error(self, s='', Raise=False, **kwargs): self.repliedTo = True if Raise: