diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-05 21:37:07 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-05 21:37:07 +0100 |
commit | b920c5f6141f800c927165c56f90ff7feb0a4b7c (patch) | |
tree | f011ac2e4d61c1f3aeb22be78f67011a1e56cd09 | |
parent | 01167a8768c1162b2d132d3e31d3f70383643454 (diff) | |
download | manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.gz manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.bz2 manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.tar.xz manamarket-b920c5f6141f800c927165c56f90ff7feb0a4b7c.zip |
filter punctuation
-rwxr-xr-x | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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.")) |