[commit-gajim] r11254 - trunk/src/common

asterix at gajim.org asterix at gajim.org
Thu Apr 30 17:20:37 CEST 2009


Author: asterix
Date: 2009-04-30 17:20:37 +0200 (Thu, 30 Apr 2009)
New Revision: 11254

Modified:
   trunk/src/common/caps.py
Log:
ignore invalid presences


Modified: trunk/src/common/caps.py
===================================================================
--- trunk/src/common/caps.py	2009-04-30 13:36:29 UTC (rev 11253)
+++ trunk/src/common/caps.py	2009-04-30 15:20:37 UTC (rev 11254)
@@ -229,7 +229,11 @@
 		# for disco... so that disco will learn how to interpret
 		# these caps
 		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)
 		if contact is None:
 			room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)



More information about the Commits mailing list