diff mod_audit/mod_audit.lua @ 5763:6c0570a8b866

mod_audit: Fix querying for both user and global events Forgot to fix this before I pushed
author Kim Alvefur <zash@zash.se>
date Sat, 02 Dec 2023 13:35:29 +0100
parents 754f8eaad34c
children
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua	Sat Dec 02 13:26:31 2023 +0100
+++ b/mod_audit/mod_audit.lua	Sat Dec 02 13:35:29 2023 +0100
@@ -207,7 +207,7 @@
 		end
 		query_jid = "@";
 	elseif host == query_jid then
-		query_jid = "@";
+		query_jid = nil;
 	end
 
 	local results, err = store:find(nil, {