# HG changeset patch # User Waqas Hussain # Date 1402002904 14400 # Node ID ee2d5b2a263d3728a2c5920ff1660f6f7c9e7a1d # Parent f89d2dec29774f16a8f823d68a33749ab6ddf60e mod_admin_telnet: Update muc:room(jid) and muc:list(host) to use the new MUC API diff -r f89d2dec2977 -r ee2d5b2a263d plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Sun Jun 01 15:40:04 2014 -0400 +++ b/plugins/mod_admin_telnet.lua Thu Jun 05 17:15:04 2014 -0400 @@ -957,7 +957,7 @@ if not room_name then return room_name, host; end - local room_obj = hosts[host].modules.muc.rooms[room_jid]; + local room_obj = hosts[host].modules.muc.get_room_from_jid(room_jid); if not room_obj then return nil, "No such room: "..room_jid; end @@ -970,8 +970,8 @@ return nil, "Please supply the address of a local MUC component"; end local c = 0; - for name in keys(host_session.modules.muc.rooms) do - print(name); + for room in host_session.modules.muc.each_room() do + print(room.jid); c = c + 1; end return true, c.." rooms";