From 418c02de9a988681977fe671d12658877512dac5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 23 Jun 2005 18:27:14 +0000 Subject: [PATCH] we now ignore unknown show --- src/common/connection.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 54fea40a6..138ac44d4 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -265,10 +265,11 @@ class Connection: #verify sigmsg = sigTag.getData() keyID = self.gpg.verify(status, sigmsg) - if not ptype: - show = prs.getShow() - if not show: - show = 'online' + show = prs.getShow() + if not show in STATUS_LIST: + show = '' # We ignore unknown show + if not ptype and not show: + show = 'online' elif ptype == 'unavailable': show = 'offline' elif ptype == 'subscribe':