comparison plugins/plugin_xep_0045.py @ 77:1ae680f9682e

wix: MUC groupchat management + short nick shown in chat window instead of full jid when possible
author Goffi <goffi@goffi.org>
date Tue, 30 Mar 2010 16:08:44 +1100
parents 8becde8a967c
children ace2af8abc5a
comparison
equal deleted inserted replaced
76:8becde8a967c 77:1ae680f9682e
137 def userLeftRoom(self, room, user): 137 def userLeftRoom(self, room, user):
138 debug (_("user %(nick)s left room (%(room_id)s)") % {'nick':user.nick, 'room_id':room.occupantJID.userhost()}) 138 debug (_("user %(nick)s left room (%(room_id)s)") % {'nick':user.nick, 'room_id':room.occupantJID.userhost()})
139 user_data={'entity':user.entity or '', 'affiliation':user.affiliation, 'role':user.role} 139 user_data={'entity':user.entity or '', 'affiliation':user.affiliation, 'role':user.role}
140 self.host.bridge.roomUserLeft(room.roomIdentifier, room.service, user.nick, user_data, self.parent.profile) 140 self.host.bridge.roomUserLeft(room.roomIdentifier, room.service, user.nick, user_data, self.parent.profile)
141 141
142 def userUpdatedStatus(self, room, user, show, status):
143 print("FIXME: MUC status not managed yet")
144 #FIXME: gof
145
142 def receivedSubject(self, room, subject): 146 def receivedSubject(self, room, subject):
143 debug (_("New subject for room (%(room_id)s): %(subject)s") % {'room_id':room.occupantJID.userhost(),'subject':subject}) 147 debug (_("New subject for room (%(room_id)s): %(subject)s") % {'room_id':room.occupantJID.userhost(),'subject':subject})
144 self.host.bridge.roomNewSubject(room.roomIdentifier, room.service, subject, self.parent.profile) 148 self.host.bridge.roomNewSubject(room.roomIdentifier, room.service, subject, self.parent.profile)
145 149
146 #def connectionInitialized(self): 150 #def connectionInitialized(self):