diff options
author | Waqas Hussain <waqas20@gmail.com> | 2014-06-05 17:15:04 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2014-06-05 17:15:04 -0400 |
commit | a1dbf229a35ea904e520b9a4508f024735a2b4ee (patch) | |
tree | dc5d06b2d43d773362224a632ac99dcfa913d97a /plugins | |
parent | 7c22fd5ce2de30d91f5d96cb48f78f9085806a89 (diff) | |
download | prosody-a1dbf229a35ea904e520b9a4508f024735a2b4ee.tar.gz prosody-a1dbf229a35ea904e520b9a4508f024735a2b4ee.zip |
mod_admin_telnet: Update muc:room(jid) and muc:list(host) to use the new MUC API
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 66560d44..0b96b68d 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -957,7 +957,7 @@ function def_env.muc:room(room_jid) 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 @@ function def_env.muc:list(host) 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"; |