# HG changeset patch # User Kim Alvefur # Date 1699875441 -3600 # Node ID 15c1801e8901ed16acf4d57f9976c801b7222f5a # Parent 0c9606770db192dcbba4dfcedd54de0de61b88f4 mod_audit: Fix showing session details in module command The namespaced session element was not accounted for. diff -r 0c9606770db1 -r 15c1801e8901 mod_audit/mod_audit.lua --- a/mod_audit/mod_audit.lua Mon Nov 13 12:22:17 2023 +0100 +++ b/mod_audit/mod_audit.lua Mon Nov 13 12:37:21 2023 +0100 @@ -271,8 +271,8 @@ source = entry.attr.source; event_type = entry.attr.type:gsub("%-", " "); username = user; - ip = entry:get_child_text("remote-ip"); - location = entry:find("location@country"); + ip = entry:find("{xmpp:prosody.im/audit}session/remote-ip#"); + country = entry:find("{xmpp:prosody.im/audit}session/location@country"); note = entry:get_child_text("note"); })); end