Changeset

23:92b1e6592d36

mod_pastebin: Allow per-host pastebin_threshold
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Oct 2009 13:52:37 +0100
parents 22:8d49732cf7dc
children 24:72bcc0475e2f
files mod_pastebin/mod_pastebin.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");