Changeset

5786: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 5785:ff8b6d0b3bfa
children 5787:87920d436cb4
files mod_audit/mod_audit.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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, {