Skip to content

Commit

Permalink
Revert "Adds a second parameter named domain to muc_size module."
Browse files Browse the repository at this point in the history
This reverts commit e2e04e3.
damencho committed Apr 4, 2017
1 parent 684572b commit e0b829f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions resources/prosody-plugins/mod_muc_size.lua
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e0b829f

Please sign in to comment.