consider all unknown types in presence as if there were no type. fixes #3144

This commit is contained in:
Yann Leboulanger 2007-05-07 19:55:27 +00:00
parent c276dc679c
commit 3455d9e578
1 changed files with 3 additions and 0 deletions

View File

@ -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)