Skip to content

Commit

Permalink
hybrid_matrix_token, fix: skip if this is not a matrix member
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Jan 17, 2024
1 parent 5eab499 commit 454a8aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions auth_hybrid_matrix_token/mod_matrix_lobby_bypass.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ module:hook("muc-occupant-pre-join", function (event)
return
end

if not event.origin.matrix_affiliation then
module:log(LOGLEVEL, "skip lobby_bypass, not a matrix user")
return
end

local roomName, _ = jid_split(room.jid)
local roomId = basexx.from_base32(roomName)
if not roomId then
Expand Down

0 comments on commit 454a8aa

Please sign in to comment.