From 17b32e8d54c1c2d304f2f6110f3e3b69e8067b37 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 31 Jan 2004 21:25:42 +0000 Subject: [PATCH] Added nicer error handling if the user does try Note.get. --- plugins/Note.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Note.py b/plugins/Note.py index 72582f31a..44badf85f 100644 --- a/plugins/Note.py +++ b/plugins/Note.py @@ -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: