comparison 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
comparison
equal deleted inserted replaced
22:8d49732cf7dc 23:92b1e6592d36
2 local st = require "util.stanza"; 2 local st = require "util.stanza";
3 local httpserver = require "net.httpserver"; 3 local httpserver = require "net.httpserver";
4 local uuid_new = require "util.uuid".generate; 4 local uuid_new = require "util.uuid".generate;
5 local os_time = os.time; 5 local os_time = os.time;
6 6
7 local length_threshold = config.get("*", "core", "pastebin_threshold") or 500; 7 local length_threshold = config.get(module.host, "core", "pastebin_threshold") or 500;
8 8
9 local base_url = config.get(module.host, "core", "pastebin_url"); 9 local base_url = config.get(module.host, "core", "pastebin_url");
10 10
11 local pastes = {}; 11 local pastes = {};
12 12