ignore invalid presences

This commit is contained in:
Yann Leboulanger 2009-04-30 15:20:37 +00:00
parent 4458db5d2c
commit 38b4e54011
1 changed files with 5 additions and 1 deletions

View File

@ -229,7 +229,11 @@ class ConnectionCaps(object):
# for disco... so that disco will learn how to interpret # for disco... so that disco will learn how to interpret
# these caps # these caps
pm_ctrl = None pm_ctrl = None
jid = helpers.get_full_jid_from_iq(presence) try:
jid = helpers.get_full_jid_from_iq(presence)
except:
# Bad jid
return
contact = gajim.contacts.get_contact_from_full_jid(self.name, jid) contact = gajim.contacts.get_contact_from_full_jid(self.name, jid)
if contact is None: if contact is None:
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid) room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)