# HG changeset patch # User Mikael Berthe # Date 1214073098 -7200 # Node ID 91f9fe1adf0c0bfe2bb70c3890ddcfe5d794caac # Parent 14dd3f4fd4dcebccc4a0995855caa652fb9141cc Add a small input check diff -r 14dd3f4fd4dc -r 91f9fe1adf0c mcevent.py --- a/mcevent.py Sat Jun 21 20:27:32 2008 +0200 +++ b/mcevent.py Sat Jun 21 20:31:38 2008 +0200 @@ -150,6 +150,10 @@ import os jid = arg2 + if not jid: + print "Ignoring invalid MSG event line." + return + buddy = get_nick(jid) if jid in contact_custom_msg: msg = contact_custom_msg[jid]