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,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':