comparison src/plugins/plugin_xep_0045.py @ 1417:176de79c8c39

core, plugin XEP-0045, frontends: change frontend method "setStatusOnline" for "setPresenceStatus": - remove parameter "online" (can be guess from "presence" value) - process "statuses" dict in quick_frontend, so this method can get a simple unicode "status" - add C.PRESENCE_STATUSES_DEFAULT to define the key to use for fallback status
author souliane <souliane@mailoo.org>
date Mon, 20 Apr 2015 16:39:38 +0200
parents 3265a2639182
children 2184d5f496b5
comparison
equal deleted inserted replaced
1416:a419da93afef 1417:176de79c8c39
732 732
733 def userChangedNick(self, room, user, new_nick): 733 def userChangedNick(self, room, user, new_nick):
734 self.host.bridge.roomUserChangedNick(room.roomJID.userhost(), user.nick, new_nick, self.parent.profile) 734 self.host.bridge.roomUserChangedNick(room.roomJID.userhost(), user.nick, new_nick, self.parent.profile)
735 735
736 def userUpdatedStatus(self, room, user, show, status): 736 def userUpdatedStatus(self, room, user, show, status):
737 self.host.bridge.presenceUpdate(room.roomJID.userhost() + '/' + user.nick, show or '', 0, {'default': status or ''}, self.parent.profile) 737 self.host.bridge.presenceUpdate(room.roomJID.userhost() + '/' + user.nick, show or '', 0, {C.PRESENCE_STATUSES_DEFAULT: status or ''}, self.parent.profile)
738 738
739 def receivedGroupChat(self, room, user, body): 739 def receivedGroupChat(self, room, user, body):
740 log.debug(u'receivedGroupChat: room=%s user=%s body=%s' % (room.roomJID.full(), user, body)) 740 log.debug(u'receivedGroupChat: room=%s user=%s body=%s' % (room.roomJID.full(), user, body))
741 741
742 def receivedHistory(self, room, user, message): 742 def receivedHistory(self, room, user, message):