From 186239ee8416088f57ff3eaaa60b10410ffdadb6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 28 Oct 2003 06:57:52 +0000 Subject: [PATCH] Fixed an infinite loop problem in the new invalidCommand code. --- src/callbacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 24f751647..a97cee9eb 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -402,6 +402,8 @@ class IrcObjectProxy: name = canonicalName(self.args[0]) cbs = findCallbackForCommand(self, name) if len(cbs) == 0: + if self.irc.nick == self.msg.nick: + return for cb in self.irc.callbacks: if isinstance(cb, PrivmsgRegexp): for (r, _) in cb.res: