summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-28 17:29:16 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-28 17:29:16 +0100
commita94f91a8b8a09910198eed8ab4407bc0c9ef66eb (patch)
treebf91b8fa1d7822e05bd8d83abb3caa03b902c41c
parent4b96c486d9cba72ec5fc3f4f15c4dbbd6ff13824 (diff)
downloadmanamarket-a94f91a8b8a09910198eed8ab4407bc0c9ef66eb.tar.gz
manamarket-a94f91a8b8a09910198eed8ab4407bc0c9ef66eb.tar.bz2
manamarket-a94f91a8b8a09910198eed8ab4407bc0c9ef66eb.tar.xz
manamarket-a94f91a8b8a09910198eed8ab4407bc0c9ef66eb.zip
Add a message for an unrecognised command.
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
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')