comparison mod_pastebin/mod_pastebin.lua @ 21:4f18696f043a

mod_pastebin: Small fix to read the pastebin URL from the config
author Matthew Wild <mwild1@gmail.com>
date Thu, 01 Oct 2009 20:58:11 +0100
parents 135855b685d6
children 92b1e6592d36
comparison
equal deleted inserted replaced
20:2675dc25445b 21:4f18696f043a
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("*", "core", "pastebin_threshold") or 500;
8 8
9 local base_url; 9 local base_url = config.get(module.host, "core", "pastebin_url");
10 10
11 local pastes = {}; 11 local pastes = {};
12 12
13 local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im"; 13 local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im";
14 local xmlns_xhtml = "http://www.w3.org/1999/xhtml"; 14 local xmlns_xhtml = "http://www.w3.org/1999/xhtml";