--- a/mod_muc_restrict_rooms/mod_muc_restrict_rooms.lua Fri Feb 20 21:28:39 2015 +0000
+++ b/mod_muc_restrict_rooms/mod_muc_restrict_rooms.lua Fri Feb 20 22:45:45 2015 +0000
@@ -44,11 +44,11 @@
end
-- Get the room
- local room = jid.split(stanza.attr.from);
+ local room = jid.split(stanza.attr.to);
if not room then return; end
-- Get who has tried to join it
- local who = jid.bare(stanza.attr.to)
+ local who = jid.bare(stanza.attr.from)
-- Checking whether room is restricted
local check_restricted = is_restricted(room, who)