From d5351f63281285d039faa1f54fb3495f8114c254 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 31 Oct 2009 23:22:12 +0100 Subject: [PATCH] ignore unknown show types when we receive strange stanza. --- src/common/connection_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index cc84e75bc..b3f95691c 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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'