From b2921275006698b2dee48de667db068c861fa620 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 25 Aug 2022 22:40:41 +0200 Subject: mod_admin_shell: Fix output from user:roles() It used _G.print instead of the shell session print, which would silently write to stdout --- plugins/mod_admin_shell.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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 -- cgit v1.2.3