aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-30 17:53:57 +0200
committerKim Alvefur <zash@zash.se>2016-08-30 17:53:57 +0200
commit5235e5ec1a3ee5eb6215e5b28e04069197571b7c (patch)
tree0218cd3dbfefa1509915d61864edb8744f75c725 /plugins
parent2ec447915fd44c0baf523247b529374074f595e0 (diff)
downloadprosody-5235e5ec1a3ee5eb6215e5b28e04069197571b7c.tar.gz
prosody-5235e5ec1a3ee5eb6215e5b28e04069197571b7c.zip
mod_admin_telnet: Fix to use modern way to fetch a MUC room
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
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