Diff

plugins/mod_admin_shell.lua @ 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
parent 12672:c8f59ce7d3cf
child 12676:3ab3ef9584e3
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