aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-12-13 16:40:55 +0100
committerKim Alvefur <zash@zash.se>2014-12-13 16:40:55 +0100
commit72b502bed309c90247cf578caf86791ad251b949 (patch)
tree32080b2051cf595f4b697de1a8bd90fc3b210048 /plugins/mod_admin_telnet.lua
parent655e1cde09f9ffb942f698b3869b1616ef11d70c (diff)
downloadprosody-72b502bed309c90247cf578caf86791ad251b949.tar.gz
prosody-72b502bed309c90247cf578caf86791ad251b949.zip
mod_admin_telnet: Use the session-specific print function
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 660fb33b..0fe6d2ad 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -974,6 +974,7 @@ function def_env.muc:list(host)
if not host_session or not host_session.modules.muc then
return nil, "Please supply the address of a local MUC component";
end
+ local print = self.session.print;
local c = 0;
for name in keys(host_session.modules.muc.rooms) do
print(name);