changeset 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 e789917fb59d
children f36c705a5310
files src/plugins/plugin_xep_0045.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py	Fri Aug 17 03:07:49 2012 +0200
+++ b/src/plugins/plugin_xep_0045.py	Fri Aug 17 03:08:37 2012 +0200
@@ -85,6 +85,7 @@
             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