# HG changeset patch # User Kim Alvefur # Date 1580053754 -3600 # Node ID 09e7e880e056dc3333a246425ea8ad9c44f4b5db # Parent 839224be5299e6ea7a705bd596f0de090c1a748e mod_pastebin: Follow XEP-0068 and use Clark notation in disco#info diff -r 839224be5299 -r 09e7e880e056 mod_pastebin/mod_pastebin.lua --- 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)