aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-04-24 00:34:49 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-04-24 00:34:49 +0500
commit5bffff6d27fa8551156478edb458e48284448279 (patch)
treed19886ac08acb348e9b7d68d73b63d6fc688d426 /plugins
parentd6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096 (diff)
downloadprosody-5bffff6d27fa8551156478edb458e48284448279.tar.gz
prosody-5bffff6d27fa8551156478edb458e48284448279.zip
mod_muc: The default room name is the room node
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_muc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua
index 8fbe1e91..6af5df7c 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -274,6 +274,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc
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