I have set up secure domain and was wondering whether it is possible to determine whether the current
joiner/occupant is the one that created the room. I hope that the affiliation would bet set at this stage, but it is nil, when I use this hook.
module:hook("muc-occupant-pre-join", function (event) local room, stanza = event.room, event.stanza; local affiliation = room:get_affiliation(stanza.attr.from); local user, domain, res = jid.split(event.stanza.attr.from); log("debug", "2--------------> user %s domain %s res %s aff %s", tostring(user),tostring(domain),tostring(res),, affiliation) end)
Is there a way to determine whether this user actually created the room or was authenticated by the secure domain?