Changeset

1059:aed462ef09d8

mod_muc: The default room name is the room node
author Waqas Hussain <waqas20@gmail.com>
date Fri, 24 Apr 2009 00:34:49 +0500
parents 1053:c04b40a0740b
children 1060:fb3b2de0eb2f
files plugins/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc.lua	Thu Apr 23 21:04:56 2009 +0100
+++ b/plugins/mod_muc.lua	Fri Apr 24 00:34:49 2009 +0500
@@ -274,6 +274,7 @@
 					log("debug", "%s joining as %s", from, to);
 					local data;
 					if not rooms:get(room) and not rooms_info:get(room) then -- new room
+						rooms_info:set(room, 'name', (jid_split(room)));
 						data = {affiliation='owner', role='moderator', jid=from, sessions={[from]=get_filtered_presence(stanza)}};
 					end
 					if not data then -- new occupant