fix multiword tags
This commit is contained in:
parent
f6207959ee
commit
17803837a0
|
@ -84,8 +84,8 @@ def tag(inp, chan='', db=None):
|
||||||
db.execute('create table if not exists tag(chan, subject, nick)')
|
db.execute('create table if not exists tag(chan, subject, nick)')
|
||||||
|
|
||||||
add = re.match(r'(?:a(?:dd)? )?(\S+) (.+)', inp)
|
add = re.match(r'(?:a(?:dd)? )?(\S+) (.+)', inp)
|
||||||
delete = re.match(r'd(?:el(?:ete)?)? (\S+) (.+)', inp)
|
delete = re.match(r'd(?:el(?:ete)?)? (\S+) (.+)\s*$', inp)
|
||||||
retrieve = re.match(r'l(?:ist)(?: (\S+))?$', inp)
|
retrieve = re.match(r'l(?:ist)(?: (.+))?\s*$', inp)
|
||||||
|
|
||||||
if retrieve:
|
if retrieve:
|
||||||
search_tag = retrieve.group(1)
|
search_tag = retrieve.group(1)
|
||||||
|
|
Loading…
Reference in New Issue