diff 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
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