# HG changeset patch # User Kim Alvefur # Date 1538564897 -7200 # Node ID 03cbffd807bb76b9a745afd477d8d6d8e676965b # Parent 4a12abccdbaf6f2b58d8db682e555048fabc14c0 mod_pastebin: Convert limit values to strings (fixes traceback) diff -r 4a12abccdbaf -r 03cbffd807bb mod_pastebin/mod_pastebin.lua --- 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)