Changeset

3868:09e7e880e056

mod_pastebin: Follow XEP-0068 and use Clark notation in disco#info
author Kim Alvefur <zash@zash.se>
date Sun, 26 Jan 2020 16:49:14 +0100
parents 3867:839224be5299
children 3869:f2b29183ef08
files mod_pastebin/mod_pastebin.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)