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
commit98dab3e838adff8cd90a9e6acbc55874871f2cfa (patch)
tree0218cd3dbfefa1509915d61864edb8744f75c725 /plugins
parenta247428e6a3a75c2007a27bc5da390683aa9cf2f (diff)
downloadprosody-98dab3e838adff8cd90a9e6acbc55874871f2cfa.tar.gz
prosody-98dab3e838adff8cd90a9e6acbc55874871f2cfa.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