muc.lib.lua: Fix Spark jabber client not displaying conference room lists, seemingly due to a missing value tag for the room description if the description has not been set
authorPaul <paul@quakenet.org>
Sat, 05 Oct 2013 17:11:16 +0100
changeset 5853 3ee3d79db18c
parent 5849 8f451d370dd4
child 5854 16a2bb97c5f5
child 5864 22b1d18eb919
muc.lib.lua: Fix Spark jabber client not displaying conference room lists, seemingly due to a missing value tag for the room description if the description has not been set
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Mon Sep 30 21:51:42 2013 +0200
+++ b/plugins/muc/muc.lib.lua	Sat Oct 05 17:11:16 2013 +0100
@@ -225,7 +225,7 @@
 		:tag("feature", {var=self._data.whois ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up()
 		:add_child(dataform.new({
 			{ name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/muc#roominfo" },
-			{ name = "muc#roominfo_description", label = "Description"},
+			{ name = "muc#roominfo_description", label = "Description", value = "" },
 			{ name = "muc#roominfo_occupants", label = "Number of occupants", value = tostring(count) }
 		}):form({["muc#roominfo_description"] = self:get_description()}, 'result'))
 	;