Save a user's chosen, persistent nickname in the MUC roster data as 'alt_nick'
The use of <nick /> elements in MUCs is now discouraged in XEP-0172, however.
This commit is contained in:
parent
295d23ccf3
commit
4a94aeba49
@ -156,6 +156,7 @@ class XEP_0045(BasePlugin):
|
|||||||
entry = pr['muc'].getStanzaValues()
|
entry = pr['muc'].getStanzaValues()
|
||||||
entry['show'] = pr['show']
|
entry['show'] = pr['show']
|
||||||
entry['status'] = pr['status']
|
entry['status'] = pr['status']
|
||||||
|
entry['alt_nick'] = pr['nick']
|
||||||
if pr['type'] == 'unavailable':
|
if pr['type'] == 'unavailable':
|
||||||
if entry['nick'] in self.rooms[entry['room']]:
|
if entry['nick'] in self.rooms[entry['room']]:
|
||||||
del self.rooms[entry['room']][entry['nick']]
|
del self.rooms[entry['room']][entry['nick']]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user