Added nicer error handling if the user does try Note.get.

This commit is contained in:
Jeremy Fincher 2004-01-31 21:25:42 +00:00
parent 02e566f7b9
commit 17b32e8d54
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ class Note(callbacks.Privmsg):
Retrieves a single note by its unique note id.
"""
noteid = privmsgs.getArgs(args)
if noteid.startswith('get'):
irc.error('The Note.get command has changed to be simply "note".')
return
try:
id = ircdb.users.getUserId(msg.prefix)
except KeyError: