mod_admin_telnet: Use the session-specific print function
authorKim Alvefur <zash@zash.se>
Sat, 13 Dec 2014 16:40:55 +0100
changeset 6536 5da544e97bea
parent 6535 a966efeb6cb3
child 6537 b89406fa076c
child 6547 2f709bc35575
mod_admin_telnet: Use the session-specific print function
plugins/mod_admin_telnet.lua
--- 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);