make '.q add @person blah' possible
This commit is contained in:
parent
1005537e63
commit
e5b623cb68
|
@ -40,7 +40,7 @@ def quote(inp, nick='', chan='', db=None):
|
||||||
"primary key (chan, nick, msg))")
|
"primary key (chan, nick, msg))")
|
||||||
db.commit()
|
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)
|
retrieve = re.match(r"(\S+)(?:\s+#?(-?\d+))?$", inp)
|
||||||
|
|
||||||
if add:
|
if add:
|
||||||
|
|
Loading…
Reference in New Issue