# HG changeset patch # User Kim Alvefur # Date 1661460041 -7200 # Node ID db8c795ca81afb64bb9843bcadaa49194d18e9b6 # Parent 72f431b4dc2c24c68f76f29809bbe7d502365188 mod_admin_shell: Fix output from user:roles() It used _G.print instead of the shell session print, which would silently write to stdout diff -r 72f431b4dc2c -r db8c795ca81a plugins/mod_admin_shell.lua --- 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