Mercurial > libervia-backend
comparison plugins/plugin_xep_0045.py @ 198:3d7a06fe3997
plugin XEP-0045: fixed receivedSubject
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Aug 2010 01:11:51 +0800 |
parents | 9ee4a1d0d7fb |
children | c5274bf5e18b |
comparison
equal
deleted
inserted
replaced
197:ca1010f47002 | 198:3d7a06fe3997 |
---|---|
172 | 172 |
173 def userUpdatedStatus(self, room, user, show, status): | 173 def userUpdatedStatus(self, room, user, show, status): |
174 print("FIXME: MUC status not managed yet") | 174 print("FIXME: MUC status not managed yet") |
175 #FIXME: gof | 175 #FIXME: gof |
176 | 176 |
177 def receivedSubject(self, room, subject): | 177 def receivedSubject(self, occupantJID, subject): |
178 room = self._getRoom(occupantJID) | |
178 debug (_("New subject for room (%(room_id)s): %(subject)s") % {'room_id':room.occupantJID.userhost(),'subject':subject}) | 179 debug (_("New subject for room (%(room_id)s): %(subject)s") % {'room_id':room.occupantJID.userhost(),'subject':subject}) |
179 room_jid = room.roomIdentifier+'@'+room.service | 180 room_jid = room.roomIdentifier+'@'+room.service |
180 self.rec_subjects[room_jid] = (room.roomIdentifier, room.service, subject) | 181 self.rec_subjects[room_jid] = (room.roomIdentifier, room.service, subject) |
181 self.host.bridge.roomNewSubject(room.roomIdentifier, room.service, subject, self.parent.profile) | 182 self.host.bridge.roomNewSubject(room.roomIdentifier, room.service, subject, self.parent.profile) |
182 | 183 |