mod_audit: Fix querying for both user and global events
authorKim Alvefur <zash@zash.se>
Sat, 02 Dec 2023 13:35:29 +0100
changeset 5767 6c0570a8b866
parent 5766 ff8b6d0b3bfa
child 5768 87920d436cb4
mod_audit: Fix querying for both user and global events Forgot to fix this before I pushed
mod_audit/mod_audit.lua
--- 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, {