fix multiword tags

This commit is contained in:
Ryan Hitchman 2010-10-13 16:22:00 -05:00
parent f6207959ee
commit 17803837a0
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ def tag(inp, chan='', db=None):
db.execute('create table if not exists tag(chan, subject, nick)')
add = re.match(r'(?:a(?:dd)? )?(\S+) (.+)', inp)
delete = re.match(r'd(?:el(?:ete)?)? (\S+) (.+)', inp)
retrieve = re.match(r'l(?:ist)(?: (\S+))?$', inp)
delete = re.match(r'd(?:el(?:ete)?)? (\S+) (.+)\s*$', inp)
retrieve = re.match(r'l(?:ist)(?: (.+))?\s*$', inp)
if retrieve:
search_tag = retrieve.group(1)