changeset 5297:4bba2d27ffaf

mod_isolate_host: potentially pedantic optimization By Zash.
author Jonas Schäfer <jonas@wielicki.name>
date Sat, 01 Apr 2023 12:10:56 +0200
parents 0f5657db1cfc
children 12f7d8b901e0
files mod_isolate_host/mod_isolate_host.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_isolate_host/mod_isolate_host.lua	Sat Apr 01 12:03:08 2023 +0200
+++ b/mod_isolate_host/mod_isolate_host.lua	Sat Apr 01 12:10:56 2023 +0200
@@ -45,7 +45,7 @@
 module:default_permission("prosody:admin", "xmpp:federate");
 
 function is_jid_isolated(bare_jid)
-	if module:may("xmpp:federate", bare_jid) or except_users:contains(bare_jid) then
+	if except_users:contains(bare_jid) or module:may("xmpp:federate", bare_jid) then
 		return false;
 	else
 		return true;