# HG changeset patch # User Kim Alvefur # Date 1472572437 -7200 # Node ID 279f348e9a92d59d649cc15c5a94b6782f60404b # Parent eab307f7435c6e0cf5515579218826c8af8d890c mod_admin_telnet: Fix to use modern way to fetch a MUC room diff -r eab307f7435c -r 279f348e9a92 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Sun Aug 28 05:15:13 2016 +0200 +++ b/plugins/mod_admin_telnet.lua Tue Aug 30 17:53:57 2016 +0200 @@ -998,7 +998,7 @@ 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