Mercurial > prosody-modules
diff mod_pastebin/mod_pastebin.lua @ 13:135855b685d6
mod_pastebin: Set default of 500 chars for pastebin_threshold
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 25 Sep 2009 22:22:58 +0100 |
parents | 316e8437f233 |
children | 4f18696f043a |
line wrap: on
line diff
--- a/mod_pastebin/mod_pastebin.lua Fri Sep 25 21:54:16 2009 +0100 +++ b/mod_pastebin/mod_pastebin.lua Fri Sep 25 22:22:58 2009 +0100 @@ -4,7 +4,7 @@ local uuid_new = require "util.uuid".generate; local os_time = os.time; -local length_threshold = config.get("*", "core", "pastebin_threshold"); +local length_threshold = config.get("*", "core", "pastebin_threshold") or 500; local base_url;