plugin xep-0045: entity type is changer to chatroom for room joined

This commit is contained in:
Goffi 2012-08-17 03:08:37 +02:00
commit df74d5f15e

View file

@ -85,6 +85,7 @@ class XEP_0045():
self.host.bridge.roomJoined(room.roomJID.userhost(), [user.nick for user in room.roster.values()], room.nick, profile)
room_jid_s = room.roomJID.userhost()
self.host.memory.updateEntityData(room.roomJID, "type", "chatroom", profile)
self.clients[profile].joined_rooms[room_jid_s] = room
if room.locked:
#FIXME: the current behaviour is to create an instant room