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.

This commit is contained in:
Valentin Lorentz 2016-02-20 12:57:04 +01:00
parent 38e7589ff3
commit 15e387ea46

View File

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