Do not call noReply() on raw IRC objects.

This commit is contained in:
Valentin Lorentz 2017-10-26 09:21:21 +02:00
parent 76c73a57b9
commit 965dcc293d
1 changed files with 4 additions and 1 deletions

View File

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