diff options
-rw-r--r-- | slixmpp/plugins/xep_0045.py | 2 |
1 files changed, 1 insertions, 1 deletions
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': |