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,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))