mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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])
|
name = canonicalName(self.args[0])
|
||||||
cbs = findCallbackForCommand(self, name)
|
cbs = findCallbackForCommand(self, name)
|
||||||
if len(cbs) == 0:
|
if len(cbs) == 0:
|
||||||
|
if self.irc.nick == self.msg.nick:
|
||||||
|
return
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
if isinstance(cb, PrivmsgRegexp):
|
if isinstance(cb, PrivmsgRegexp):
|
||||||
for (r, _) in cb.res:
|
for (r, _) in cb.res:
|
||||||
|
Loading…
Reference in New Issue
Block a user