summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-09-03 18:09:28 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-09-03 18:09:28 +0100
commit4ad37b3ed77c833799e5255145548b89385abcaa (patch)
tree2d12c71361055fbb73f17f43ad932bc2b7158dd7
parente4ee3aa1f48b00e7dc0f49458c39a84890d6ee0a (diff)
downloadmanamarket-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-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 23347df..a722a1a 100755
--- a/main.py
+++ b/main.py
@@ -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()