# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1253913778 -3600
# Node ID 135855b685d685af15fcbe473e1d1078c8325389
# Parent  316e8437f233fa2c7a01dfa0c0a3edbb82e9ed61
mod_pastebin: Set default of 500 chars for pastebin_threshold

diff -r 316e8437f233 -r 135855b685d6 mod_pastebin/mod_pastebin.lua
--- 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;