Show
Ignore:
Timestamp:
11/16/07 11:52:35 (13 months ago)
Author:
asterix
Message:

detect our own presences

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/src/common/connection_handlers.py

    r8955 r8981  
    17991799                                except exceptions.PysqliteOperationalError, e: 
    18001800                                        self.dispatch('ERROR', (_('Disk Write Error'), str(e))) 
    1801                         self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio, 
    1802                                 keyID, timestamp, contact_nickname)) 
     1801                        our_jid = gajim.get_jid_from_account(self.name) 
     1802                        if jid_stripped == our_jid and resource == self.server_resource: 
     1803                                # We got our own presence 
     1804                                self.dispatch('STATUS', show) 
     1805                        else: 
     1806                                self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio, 
     1807                                        keyID, timestamp, contact_nickname)) 
    18031808        # END presenceCB 
    18041809