we now ignore unknown show

This commit is contained in:
Yann Leboulanger 2005-06-23 18:27:14 +00:00
parent cca69c2881
commit 418c02de9a
1 changed files with 5 additions and 4 deletions

View File

@ -265,9 +265,10 @@ class Connection:
#verify #verify
sigmsg = sigTag.getData() sigmsg = sigTag.getData()
keyID = self.gpg.verify(status, sigmsg) keyID = self.gpg.verify(status, sigmsg)
if not ptype:
show = prs.getShow() show = prs.getShow()
if not show: if not show in STATUS_LIST:
show = '' # We ignore unknown show
if not ptype and not show:
show = 'online' show = 'online'
elif ptype == 'unavailable': elif ptype == 'unavailable':
show = 'offline' show = 'offline'