Author: asterix
Date: 2009-03-20 21:17:13 +0100 (Fri, 20 Mar 2009)
New Revision: 11177
Modified:
trunk/src/gajim.py
Log:
don't add a self contact row when we get an offline presence from an unknown resource. Fixes #4582
Modified: trunk/src/gajim.py
===================================================================
--- trunk/src/gajim.py 2009-03-20 20:02:05 UTC (rev 11176)
+++ trunk/src/gajim.py 2009-03-20 20:17:13 UTC (rev 11177)
@@ -733,6 +733,9 @@
# Create self contact and add to roster
if resource == conn.server_resource:
return
+ # Ignore offline presence of unknown self resource
+ if new_show < 2:
+ return
contact1 = gajim.contacts.create_contact(jid=ji,
name=gajim.nicks[account], groups=['self_contact'],
show=array[1], status=status_message, sub='both', ask='none',