From a94f91a8b8a09910198eed8ab4407bc0c9ef66eb Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Sun, 28 Aug 2011 17:29:16 +0100 Subject: Add a message for an unrecognised command. --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 4d2ddcc..a43baad 100755 --- a/main.py +++ b/main.py @@ -530,6 +530,8 @@ def process_whisper(nick, msg, mapserv): else: mapserv.sendall(whisper(nick, "Where are you?!? I can't trade with somebody who isn't here!")) trader_state.reset() + else: + mapserv.sendall(whisper(nick, "Command not recognised, please whisper me !help for a full list of commands.")) def main(): logging.basicConfig(filename='data/logs/activity.log', level=logging.INFO, format='%(asctime)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') -- cgit v1.2.3-70-g09d2