From 17803837a079cabf472d4e88e85a488b1d8f4c96 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Wed, 13 Oct 2010 16:22:00 -0500 Subject: [PATCH] fix multiword tags --- plugins/tag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tag.py b/plugins/tag.py index 49e8e79..59e303d 100644 --- a/plugins/tag.py +++ b/plugins/tag.py @@ -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)