From 946674f424776ebfd1c3b9df6519de44186487cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 24 Apr 2019 20:28:58 +0100 Subject: xep_0045: Ensure value is valid. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/plugins/xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0045.py b/slixmpp/plugins/xep_0045.py index 83521b01..30769b5c 100644 --- a/slixmpp/plugins/xep_0045.py +++ b/slixmpp/plugins/xep_0045.py @@ -162,7 +162,7 @@ class XEP_0045(BasePlugin): return self.xmpp.roster[pr['from']].ignore_updates = True entry = pr['muc'].get_stanza_values() - entry['show'] = pr['show'] + entry['show'] = pr['show'] if pr['show'] in pr.showtypes else None entry['status'] = pr['status'] entry['alt_nick'] = pr['nick'] if pr['type'] == 'unavailable': -- cgit v1.2.3