ignore show that are not in RFC-3921.

This commit is contained in:
Yann Leboulanger 2008-12-11 22:04:25 +00:00
parent 2633b5bf16
commit 5f6c7d858f

View file

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