xep_0045: Ensure <show/> value is valid.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
72b355de8c
commit
946674f424
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue