diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-03 18:09:28 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-03 18:09:28 +0100 |
commit | 4ad37b3ed77c833799e5255145548b89385abcaa (patch) | |
tree | 2d12c71361055fbb73f17f43ad932bc2b7158dd7 | |
parent | e4ee3aa1f48b00e7dc0f49458c39a84890d6ee0a (diff) | |
download | manamarket-4ad37b3ed77c833799e5255145548b89385abcaa.tar.gz manamarket-4ad37b3ed77c833799e5255145548b89385abcaa.tar.bz2 manamarket-4ad37b3ed77c833799e5255145548b89385abcaa.tar.xz manamarket-4ad37b3ed77c833799e5255145548b89385abcaa.zip |
Oops, for the crazy messages, if all chars are filtered.
-rwxr-xr-x | main.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -39,6 +39,8 @@ ItemLog = utils.ItemLog() def process_whisper(nick, msg, mapserv): msg = filter(lambda x: x in utils.allowed_chars, msg) + if len(msg) == 0: + return user = user_tree.get_user(nick) broken_string = msg.split() |