Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 6533:5da544e97bea
mod_admin_telnet: Use the session-specific print function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 13 Dec 2014 16:40:55 +0100 |
parent | 6503:8437058c4226 |
child | 6534:b89406fa076c |
child | 6580:74946f050209 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Thu Dec 11 09:18:39 2014 +0100 +++ b/plugins/mod_admin_telnet.lua Sat Dec 13 16:40:55 2014 +0100 @@ -974,6 +974,7 @@ 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);