Author: asterix Date: 2007-05-07 21:55:27 +0200 (Mon, 07 May 2007) New Revision: 8130
Modified: trunk/src/common/connection_handlers.py Log: consider all unknown types in presence as if there were no type. fixes #3144
Modified: trunk/src/common/connection_handlers.py =================================================================== --- trunk/src/common/connection_handlers.py 2007-05-06 17:26:32 UTC (rev 8129) +++ trunk/src/common/connection_handlers.py 2007-05-07 19:55:27 UTC (rev 8130) @@ -1544,6 +1544,9 @@ ptype = prs.getType() if ptype == 'available': ptype = None + rfc_types = ('unavailable', 'error', 'subscribe', 'subscribed', 'unsubscribe', 'unsubscribed') + if ptype and not ptype in rfc_types: + ptype = None gajim.log.debug('PresenceCB: %s' % ptype) try: who = helpers.get_full_jid_from_iq(prs)