Handle actions correctly in last.

This commit is contained in:
Jeremy Fincher 2004-03-25 12:08:01 +00:00
parent b7a70d29ad
commit a1e4b790dd

View File

@ -403,6 +403,9 @@ class Misc(callbacks.Privmsg):
try: try:
r = utils.perlReToPythonRe(arg) r = utils.perlReToPythonRe(arg)
def f(m, r=r): def f(m, r=r):
if ircmsgs.isAction(m):
return r.search(ircmsgs.unAction(m))
else:
return r.search(m.args[1]) return r.search(m.args[1])
predicates.setdefault('regexp', []).append(f) predicates.setdefault('regexp', []).append(f)
except ValueError, e: except ValueError, e: