mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Handle actions correctly in last.
This commit is contained in:
parent
b7a70d29ad
commit
a1e4b790dd
@ -403,6 +403,9 @@ class Misc(callbacks.Privmsg):
|
||||
try:
|
||||
r = utils.perlReToPythonRe(arg)
|
||||
def f(m, r=r):
|
||||
if ircmsgs.isAction(m):
|
||||
return r.search(ircmsgs.unAction(m))
|
||||
else:
|
||||
return r.search(m.args[1])
|
||||
predicates.setdefault('regexp', []).append(f)
|
||||
except ValueError, e:
|
||||
|
Loading…
Reference in New Issue
Block a user