mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +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.
|
Retrieves a single note by its unique note id.
|
||||||
"""
|
"""
|
||||||
noteid = privmsgs.getArgs(args)
|
noteid = privmsgs.getArgs(args)
|
||||||
|
if noteid.startswith('get'):
|
||||||
|
irc.error('The Note.get command has changed to be simply "note".')
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
id = ircdb.users.getUserId(msg.prefix)
|
id = ircdb.users.getUserId(msg.prefix)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user