From 98dab3e838adff8cd90a9e6acbc55874871f2cfa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 30 Aug 2016 17:53:57 +0200 Subject: mod_admin_telnet: Fix to use modern way to fetch a MUC room --- plugins/mod_admin_telnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_admin_telnet.lua') diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index dd583663..8e72ff9f 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -998,7 +998,7 @@ function def_env.muc:create(room_jid) return room_name, host; end if not room_name then return nil, host end - if hosts[host].modules.muc.rooms[room_jid] then return nil, "Room exists already" end + if hosts[host].modules.muc.get_room_from_jid(room_jid) then return nil, "Room exists already" end return hosts[host].modules.muc.create_room(room_jid); end -- cgit v1.2.3