summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-09-05 21:37:07 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-09-05 21:37:07 +0100
commitb920c5f6141f800c927165c56f90ff7feb0a4b7c (patch)
treef011ac2e4d61c1f3aeb22be78f67011a1e56cd09
parent01167a8768c1162b2d132d3e31d3f70383643454 (diff)
downloadmanamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.gz
manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.bz2
manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.xz
manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.zip
filter punctuation
-rwxr-xr-xmain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index 2f0b71c..f5b0b23 100755
--- a/main.py
+++ b/main.py
@@ -564,6 +564,7 @@ def process_whisper(nick, msg, mapserv):
mapserv.sendall(whisper(nick, "Where are you?!? I can't trade with somebody who isn't here!"))
trader_state.reset()
else:
+ msg = filter(lambda x: x in string.letters, msg)
mapserv.sendall(whisper(nick, chatbot.tell(msg.lower())))
#mapserv.sendall(whisper(nick, "Command not recognised, please whisper me !help for a full list of commands."))