From e0b829f92f12eff742b10a397feb9fb563df435c Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 4 Apr 2017 18:45:58 -0500 Subject: [PATCH] Revert "Adds a second parameter named domain to muc_size module." This reverts commit e2e04e3f16b7e96ed2de407b2b19ab5ec19ad867. --- resources/prosody-plugins/mod_muc_size.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/resources/prosody-plugins/mod_muc_size.lua b/resources/prosody-plugins/mod_muc_size.lua index 04f034a35..7a6265821 100644 --- a/resources/prosody-plugins/mod_muc_size.lua +++ b/resources/prosody-plugins/mod_muc_size.lua @@ -40,12 +40,10 @@ end function handle_get_room_size(event) local params = parse(event.request.url.query); local room_name = params["room"]; - local domain_name = params["domain"]; - local room_address = room_name .. "@" .. domain_name; - local room = get_room_from_jid(room_address); + local room = get_room_from_jid(room_name); local participant_count = 0; - log("debug", "Querying room %s", tostring(room_address)); + log("debug", "Querying room %s", tostring(room_name)); if room then local occupants = room._occupants; @@ -73,13 +71,11 @@ end function handle_get_room (event) local params = parse(event.request.url.query); local room_name = params["room"]; - local domain_name = params["domain"]; - local room_address = room_name .. "@" .. domain_name; - local room = get_room_from_jid(room_address); + local room = get_room_from_jid(room_name); local participant_count = 0; local occupants_json = array(); - log("debug", "Querying room %s", tostring(room_address)); + log("debug", "Querying room %s", tostring(room_name)); if room then local occupants = room._occupants;