Software /
code /
prosody
Changeset
12675:db8c795ca81a
mod_admin_shell: Fix output from user:roles()
It used _G.print instead of the shell session print, which would
silently write to stdout
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 25 Aug 2022 22:40:41 +0200 |
parents | 12674:72f431b4dc2c |
children | 12676:3ab3ef9584e3 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Mon Aug 22 13:53:35 2022 +0100 +++ b/plugins/mod_admin_shell.lua Thu Aug 25 22:40:41 2022 +0200 @@ -1441,6 +1441,7 @@ 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