From e5b623cb68d180a78a2294acd741f7be5f171a36 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Sun, 25 Apr 2010 15:40:59 -0600 Subject: [PATCH] make '.q add @person blah' possible --- plugins/quote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/quote.py b/plugins/quote.py index c7565ca..78f3b63 100644 --- a/plugins/quote.py +++ b/plugins/quote.py @@ -40,7 +40,7 @@ def quote(inp, nick='', chan='', db=None): "primary key (chan, nick, msg))") db.commit() - add = re.match(r"add\W+(\S+?)>?\s+(.*)", inp, re.I) + add = re.match(r"add[^\w@]+(\S+?)>?\s+(.*)", inp, re.I) retrieve = re.match(r"(\S+)(?:\s+#?(-?\d+))?$", inp) if add: