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:
Lance Stout 2012-08-07 19:33:17 -07:00
parent 295d23ccf3
commit 4a94aeba49

View file

@ -156,6 +156,7 @@ class XEP_0045(BasePlugin):
entry = pr['muc'].getStanzaValues()
entry['show'] = pr['show']
entry['status'] = pr['status']
entry['alt_nick'] = pr['nick']
if pr['type'] == 'unavailable':
if entry['nick'] in self.rooms[entry['room']]:
del self.rooms[entry['room']][entry['nick']]