Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.py @ 488:6edb4219fcf7
plugin xep-0045: entity type is changer to chatroom for room joined
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Aug 2012 03:08:37 +0200 |
parents | 2a072735e459 |
children | 2402668b5d05 |
comparison
equal
deleted
inserted
replaced
487:e789917fb59d | 488:6edb4219fcf7 |
---|---|
83 """Called when the user is in the requested room""" | 83 """Called when the user is in the requested room""" |
84 def _sendBridgeSignal(ignore=None): | 84 def _sendBridgeSignal(ignore=None): |
85 self.host.bridge.roomJoined(room.roomJID.userhost(), [user.nick for user in room.roster.values()], room.nick, profile) | 85 self.host.bridge.roomJoined(room.roomJID.userhost(), [user.nick for user in room.roster.values()], room.nick, profile) |
86 | 86 |
87 room_jid_s = room.roomJID.userhost() | 87 room_jid_s = room.roomJID.userhost() |
88 self.host.memory.updateEntityData(room.roomJID, "type", "chatroom", profile) | |
88 self.clients[profile].joined_rooms[room_jid_s] = room | 89 self.clients[profile].joined_rooms[room_jid_s] = room |
89 if room.locked: | 90 if room.locked: |
90 #FIXME: the current behaviour is to create an instant room | 91 #FIXME: the current behaviour is to create an instant room |
91 #and send the signal only when the room is unlocked | 92 #and send the signal only when the room is unlocked |
92 #a proper configuration management should be done | 93 #a proper configuration management should be done |