diff mod_pastebin/mod_pastebin.lua @ 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 4f18696f043a
children 72bcc0475e2f
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");