mcevent.py
changeset 9 91f9fe1adf0c
parent 8 14dd3f4fd4dc
child 10 cf31fa2e0bbc
equal deleted inserted replaced
8:14dd3f4fd4dc 9:91f9fe1adf0c
   148 
   148 
   149     if event == 'MSG' and arg1 == 'IN':
   149     if event == 'MSG' and arg1 == 'IN':
   150         import os
   150         import os
   151 
   151 
   152         jid = arg2
   152         jid = arg2
       
   153         if not jid:
       
   154             print "Ignoring invalid MSG event line."
       
   155             return
       
   156 
   153         buddy = get_nick(jid)
   157         buddy = get_nick(jid)
   154         if jid in contact_custom_msg:
   158         if jid in contact_custom_msg:
   155             msg = contact_custom_msg[jid]
   159             msg = contact_custom_msg[jid]
   156         elif 'default' in contact_custom_msg:
   160         elif 'default' in contact_custom_msg:
   157             msg = contact_custom_msg['default']
   161             msg = contact_custom_msg['default']