Diff

plugins/mod_admin_telnet.lua @ 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
parent 7477:f9e470026042
child 7723:488fddf88ffd
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