From 3455d9e57898aaa6b896a30c014a94a695614f06 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 7 May 2007 19:55:27 +0000 Subject: [PATCH] consider all unknown types in presence as if there were no type. fixes #3144 --- src/common/connection_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 504e81e0b..a8d097226 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1544,6 +1544,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, 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)