Fixed an infinite loop problem in the new invalidCommand code.

This commit is contained in:
Jeremy Fincher 2003-10-28 06:57:52 +00:00
parent a34589cce7
commit 186239ee84

View File

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