aboutsummaryrefslogtreecommitdiffstats
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
commit491e998884c5751d09b04aae5cb18e193b4b884b (patch)
treeb080c1682c82e881c4e16760d600a1e935b41a56
parenta7d5181dfbb5f6b2979645ac802cd1a098282d31 (diff)
downloadprosody-491e998884c5751d09b04aae5cb18e193b4b884b.tar.gz
prosody-491e998884c5751d09b04aae5cb18e193b4b884b.zip
mod_muc: The default room name is the room node
-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 ca8e9cb7..2edf75fe 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -276,6 +276,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