mod_admin_shell: Fix output from user:roles()
authorKim Alvefur <zash@zash.se>
Thu, 25 Aug 2022 22:40:41 +0200
changeset 12679 db8c795ca81a
parent 12678 72f431b4dc2c
child 12680 3ab3ef9584e3
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
--- 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