Revert "Adds a second parameter named domain to muc_size module."

This reverts commit e2e04e3f16.
This commit is contained in:
damencho 2017-04-04 18:45:58 -05:00
parent 684572bd05
commit e0b829f92f
1 changed files with 4 additions and 8 deletions

View File

@ -40,12 +40,10 @@ end
function handle_get_room_size(event) function handle_get_room_size(event)
local params = parse(event.request.url.query); local params = parse(event.request.url.query);
local room_name = params["room"]; local room_name = params["room"];
local domain_name = params["domain"]; local room = get_room_from_jid(room_name);
local room_address = room_name .. "@" .. domain_name;
local room = get_room_from_jid(room_address);
local participant_count = 0; local participant_count = 0;
log("debug", "Querying room %s", tostring(room_address)); log("debug", "Querying room %s", tostring(room_name));
if room then if room then
local occupants = room._occupants; local occupants = room._occupants;
@ -73,13 +71,11 @@ end
function handle_get_room (event) function handle_get_room (event)
local params = parse(event.request.url.query); local params = parse(event.request.url.query);
local room_name = params["room"]; local room_name = params["room"];
local domain_name = params["domain"]; local room = get_room_from_jid(room_name);
local room_address = room_name .. "@" .. domain_name;
local room = get_room_from_jid(room_address);
local participant_count = 0; local participant_count = 0;
local occupants_json = array(); local occupants_json = array();
log("debug", "Querying room %s", tostring(room_address)); log("debug", "Querying room %s", tostring(room_name));
if room then if room then
local occupants = room._occupants; local occupants = room._occupants;