Software /
code /
prosody-modules
Comparison
mod_isolate_host/mod_isolate_host.lua @ 5812:25e20fa3824c
mod_isolate_host: Fix inverted logic in log message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 08 Dec 2023 16:00:34 +0000 |
parent | 5297:4bba2d27ffaf |
comparison
equal
deleted
inserted
replaced
5811:31c331d05a75 | 5812:25e20fa3824c |
---|---|
56 local session = event.session; | 56 local session = event.session; |
57 local bare_jid = jid_bare(session.full_jid); | 57 local bare_jid = jid_bare(session.full_jid); |
58 if not is_jid_isolated(bare_jid) then | 58 if not is_jid_isolated(bare_jid) then |
59 session.no_host_isolation = true; | 59 session.no_host_isolation = true; |
60 end | 60 end |
61 module:log("debug", "%s is %sisolated", session.full_jid or "[?]", session.no_host_isolation and "" or "not "); | 61 module:log("debug", "%s is %sisolated", session.full_jid or "[?]", session.no_host_isolation and "not " or ""); |
62 end | 62 end |
63 | 63 |
64 module:hook("resource-bind", set_session_isolation_flag); | 64 module:hook("resource-bind", set_session_isolation_flag); |