Changeset

7640:279f348e9a92

mod_admin_telnet: Fix to use modern way to fetch a MUC room
author Kim Alvefur <zash@zash.se>
date Tue, 30 Aug 2016 17:53:57 +0200
parents 7639:eab307f7435c
children 7641:5eef792bb2e1
files plugins/mod_admin_telnet.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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