changeset 2245:a0727d23ee65

mod_storage_muconference_readonly: Use the correct store name, and add description.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 24 Jul 2016 17:17:06 +0100
parents e0663dcd934d
children a3e3dc9131e7
files mod_storage_muconference_readonly/mod_storage_muconference_readonly.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_muconference_readonly/mod_storage_muconference_readonly.lua	Sun Jul 24 17:14:13 2016 +0100
+++ b/mod_storage_muconference_readonly/mod_storage_muconference_readonly.lua	Sun Jul 24 17:17:06 2016 +0100
@@ -37,7 +37,7 @@
 end
 
 local function keyval_store_get()
-	if store == "muc" then
+	if store == "config" then
 		local room_jid = room.."@"..host;
 		local result;
 		for row in engine:select("SELECT `name`,`desc`,`topic`,`public`,`secret` FROM `rooms` WHERE `jid`=? LIMIT 1", room_jid or "") do result = row end
@@ -70,6 +70,7 @@
 			_data = {
 				persistent = true,
 				name = name,
+				description = desc,
 				subject = subject,
 				password = secret,
 				hidden = hidden,