# HG changeset patch # User Nicolás Kovac # Date 1424472345 0 # Node ID 79adec50b24d80366c655cdf835b56fad5a70361 # Parent ca04f75958f7aab6272a3dbe8fcbd673febba5c8 mod_muc_restrict_rooms: Fixed the way of getting room and user diff -r ca04f75958f7 -r 79adec50b24d mod_muc_restrict_rooms/mod_muc_restrict_rooms.lua --- 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)