ignore invalid presences
This commit is contained in:
parent
4458db5d2c
commit
38b4e54011
|
@ -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
|
||||||
|
try:
|
||||||
jid = helpers.get_full_jid_from_iq(presence)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue