mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed an infinite loop problem in the new invalidCommand code.
This commit is contained in:
parent
a34589cce7
commit
186239ee84
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user