mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Oops, not self.msg.
This commit is contained in:
parent
eaa15860d8
commit
b9fb362a65
@ -404,14 +404,14 @@ class IrcObjectProxy:
|
||||
for cb in self.irc.callbacks:
|
||||
if isinstance(cb, PrivmsgRegexp):
|
||||
for (r, _) in cb.res:
|
||||
if r.search(msg.args[1]):
|
||||
if r.search(self.msg.args[1]):
|
||||
return
|
||||
if isinstance(cb, PrivmsgCommandAndRegexp):
|
||||
elif isinstance(cb, PrivmsgCommandAndRegexp):
|
||||
for (r, _) in cb.res:
|
||||
if r.search(msg.args[1]):
|
||||
if r.search(self.msg.args[1]):
|
||||
return
|
||||
for (r, _) in cb.addressedRes:
|
||||
if r.search(msg.args[1]):
|
||||
if r.search(self.msg.args[1]):
|
||||
return
|
||||
# Ok, no regexp-based things matched.
|
||||
for cb in self.irc.callbacks:
|
||||
|
Loading…
Reference in New Issue
Block a user