mod_pastebin/mod_pastebin.lua
changeset 3872 09e7e880e056
parent 3350 03cbffd807bb
child 4704 f821eeac0e50
--- a/mod_pastebin/mod_pastebin.lua	Sun Jan 26 04:07:07 2020 +0100
+++ b/mod_pastebin/mod_pastebin.lua	Sun Jan 26 16:49:14 2020 +0100
@@ -155,10 +155,10 @@
 module:hook("muc-disco#info", function (event)
 	local reply, form, formdata = event.reply, event.form, event.formdata;
 	reply:tag("feature", { var = "https://modules.prosody.im/mod_pastebin" }):up();
-	table.insert(form, { name = "https://modules.prosody.im/mod_pastebin#max_lines", datatype = "xs:integer" });
-	table.insert(form, { name = "https://modules.prosody.im/mod_pastebin#max_characters", datatype = "xs:integer" });
-	formdata["https://modules.prosody.im/mod_pastebin#max_lines"] = tostring(line_threshold);
-	formdata["https://modules.prosody.im/mod_pastebin#max_characters"] = tostring(length_threshold);
+	table.insert(form, { name = "{https://modules.prosody.im/mod_pastebin}max_lines", datatype = "xs:integer" });
+	table.insert(form, { name = "{https://modules.prosody.im/mod_pastebin}max_characters", datatype = "xs:integer" });
+	formdata["{https://modules.prosody.im/mod_pastebin}max_lines"] = tostring(line_threshold);
+	formdata["{https://modules.prosody.im/mod_pastebin}max_characters"] = tostring(length_threshold);
 end);
 
 function expire_pastes(time)