summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-08-07 19:33:17 -0700
committerLance Stout <lancestout@gmail.com>2012-08-07 19:33:17 -0700
commit4a94aeba49cd2a30ee4d3e71feee5df785b83760 (patch)
treec04a408935561256287db21deacd9e07acde8925 /sleekxmpp
parent295d23ccf37860245d0e86b38a3a2315532f2972 (diff)
downloadslixmpp-4a94aeba49cd2a30ee4d3e71feee5df785b83760.tar.gz
slixmpp-4a94aeba49cd2a30ee4d3e71feee5df785b83760.tar.bz2
slixmpp-4a94aeba49cd2a30ee4d3e71feee5df785b83760.tar.xz
slixmpp-4a94aeba49cd2a30ee4d3e71feee5df785b83760.zip
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.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0045.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py
index 7cd25b2a..45f2915f 100644
--- a/sleekxmpp/plugins/xep_0045.py
+++ b/sleekxmpp/plugins/xep_0045.py
@@ -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']]