From 4a94aeba49cd2a30ee4d3e71feee5df785b83760 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 7 Aug 2012 19:33:17 -0700 Subject: Save a user's chosen, persistent nickname in the MUC roster data as 'alt_nick' The use of elements in MUCs is now discouraged in XEP-0172, however. --- sleekxmpp/plugins/xep_0045.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp') 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']] -- cgit v1.2.3