# HG changeset patch # User Waqas Hussain # Date 1345574273 -18000 # Node ID 4e43becc3bbeaaf1432a51973102a1cc58c468c2 # Parent 133ee88d19aec1f825bfbba639ab774dd8029cbd mod_pastebin: Have a default pastebin URL. diff -r 133ee88d19ae -r 4e43becc3bbe mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Fri Aug 17 17:23:52 2012 +0200 +++ b/mod_pastebin/mod_pastebin.lua Tue Aug 21 23:37:53 2012 +0500 @@ -30,7 +30,7 @@ local max_summary_length = module:get_option_number("pastebin_summary_length", 150); local html_preview = module:get_option_boolean("pastebin_html_preview", true); -local base_url = module:get_option_string("pastebin_url"); +local base_url = module:get_option_string("pastebin_url", module:http_url()); -- Seconds a paste should live for in seconds (config is in hours), default 24 hours local expire_after = math.floor(module:get_option_number("pastebin_expire_after", 24) * 3600);