ignore unknown show types when we receive strange stanza.

This commit is contained in:
Yann Leboulanger 2009-10-31 23:22:12 +01:00
parent 4824db0923
commit d5351f6328
1 changed files with 1 additions and 1 deletions

View File

@ -2259,7 +2259,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
is_gc = True
status = prs.getStatus() or ''
show = prs.getShow()
if not show in gajim.SHOW_LIST:
if show not in ('chat', 'away', 'xa', 'dnd'):
show = '' # We ignore unknown show
if not ptype and not show:
show = 'online'