From 965dcc293d3b6d40013a5f4a4282483cd05b7046 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 26 Oct 2017 09:21:21 +0200 Subject: [PATCH] Do not call noReply() on raw IRC objects. --- src/callbacks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 771679751..06371b352 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1016,7 +1016,10 @@ class NestedCommandsIrcProxy(ReplyIrcProxy): msg = self.msg super(NestedCommandsIrcProxy, self).noReply(msg=msg) if self.finalEvaled: - self.irc.noReply(msg=msg) + if isinstance(self.irc, NestedCommandsIrcProxy): + self.irc.noReply(msg=msg) + else: + msg.tag('ignored', True) else: self.args.pop(self.counter) msg.tag('ignored', False)