mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Added nicer error handling if the user does try Note.get.
This commit is contained in:
parent
02e566f7b9
commit
17b32e8d54
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user