plugins/mod_admin_shell.lua
changeset 12679 db8c795ca81a
parent 12676 c8f59ce7d3cf
child 12680 3ab3ef9584e3
--- 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