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,7 +403,10 @@ class Misc(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
r = utils.perlReToPythonRe(arg)
|
r = utils.perlReToPythonRe(arg)
|
||||||
def f(m, r=r):
|
def f(m, r=r):
|
||||||
return r.search(m.args[1])
|
if ircmsgs.isAction(m):
|
||||||
|
return r.search(ircmsgs.unAction(m))
|
||||||
|
else:
|
||||||
|
return r.search(m.args[1])
|
||||||
predicates.setdefault('regexp', []).append(f)
|
predicates.setdefault('regexp', []).append(f)
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user