--- a/mod_pastebin/mod_pastebin.lua Wed Oct 03 12:59:04 2018 +0200
+++ b/mod_pastebin/mod_pastebin.lua Wed Oct 03 13:08:17 2018 +0200
@@ -157,8 +157,8 @@
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"] = line_threshold;
- formdata["https://modules.prosody.im/mod_pastebin#max_characters"] = length_threshold;
+ 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)