tag: warn users when they try to use the old methods

This commit is contained in:
Ryan Hitchman 2014-01-30 14:53:54 -08:00
parent 726bf0dd4b
commit 19922cdfee
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ def tag(inp, chan='', db=None):
if add:
nick, subject = add.groups()
if nick.lower() == 'list':
return 'tag syntax has changed. try .tags or .tagged instead'
elif nick.lower() == 'del':
return 'tag syntax has changed. try ".untag %s" instead' % subject
return add_tag(db, chan, nick, subject)
else:
tags = get_tags_by_nick(db, chan, inp)