Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 6534:b89406fa076c
Merge 0.10 -> trunk
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 16 Dec 2014 18:33:54 -0500 |
parent | 6511:5f9389af5115 |
parent | 6533:5da544e97bea |
child | 6581:f2a7ad099e01 |
comparison
equal
deleted
inserted
replaced
6527:074a41ee0409 | 6534:b89406fa076c |
---|---|
972 function def_env.muc:list(host) | 972 function def_env.muc:list(host) |
973 local host_session = hosts[host]; | 973 local host_session = hosts[host]; |
974 if not host_session or not host_session.modules.muc then | 974 if not host_session or not host_session.modules.muc then |
975 return nil, "Please supply the address of a local MUC component"; | 975 return nil, "Please supply the address of a local MUC component"; |
976 end | 976 end |
977 local print = self.session.print; | |
977 local c = 0; | 978 local c = 0; |
978 for room in host_session.modules.muc.each_room() do | 979 for room in host_session.modules.muc.each_room() do |
979 print(room.jid); | 980 print(room.jid); |
980 c = c + 1; | 981 c = c + 1; |
981 end | 982 end |