# HG changeset patch # User Matthew Wild # Date 1254487957 -3600 # Node ID 92b1e6592d36814adce11fe85995529cb07e3bf4 # Parent 8d49732cf7dc72e8f26a43c2bb76dd52d31c0735 mod_pastebin: Allow per-host pastebin_threshold diff -r 8d49732cf7dc -r 92b1e6592d36 mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Fri Oct 02 02:04:55 2009 +0200 +++ b/mod_pastebin/mod_pastebin.lua Fri Oct 02 13:52:37 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") or 500; +local length_threshold = config.get(module.host, "core", "pastebin_threshold") or 500; local base_url = config.get(module.host, "core", "pastebin_url");