make '.q add @person blah' possible

This commit is contained in:
Ryan Hitchman 2010-04-25 15:40:59 -06:00
parent 1005537e63
commit e5b623cb68
1 changed files with 1 additions and 1 deletions

View File

@ -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: