aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-08-25 22:40:41 +0200
committerKim Alvefur <zash@zash.se>2022-08-25 22:40:41 +0200
commitb2921275006698b2dee48de667db068c861fa620 (patch)
tree4c9eef742495bf9f78eb32ffeb955f049f95a491
parente4ed9a570ab61ef45ca0e63dfd6d230e26812749 (diff)
downloadprosody-b2921275006698b2dee48de667db068c861fa620.tar.gz
prosody-b2921275006698b2dee48de667db068c861fa620.zip
mod_admin_shell: Fix output from user:roles()
It used _G.print instead of the shell session print, which would silently write to stdout
-rw-r--r--plugins/mod_admin_shell.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 49e07dae..042d6cff 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1441,6 +1441,7 @@ function def_env.user:password(jid, password)
end
function def_env.user:role(jid, host)
+ local print = self.session.print;
local username, userhost = jid_split(jid);
if host == nil then host = userhost; end
if not prosody.hosts[host] then