Mercurial > prosody-modules
comparison mod_pastebin/mod_pastebin.lua @ 802:4e43becc3bbe
mod_pastebin: Have a default pastebin URL.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 21 Aug 2012 23:37:53 +0500 |
| parents | 7e444de959bb |
| children | 6c2b77f97e62 |
comparison
equal
deleted
inserted
replaced
| 801:133ee88d19ae | 802:4e43becc3bbe |
|---|---|
| 28 local length_threshold = module:get_option_number("pastebin_threshold", 500); | 28 local length_threshold = module:get_option_number("pastebin_threshold", 500); |
| 29 local line_threshold = module:get_option_number("pastebin_line_threshold", 4); | 29 local line_threshold = module:get_option_number("pastebin_line_threshold", 4); |
| 30 local max_summary_length = module:get_option_number("pastebin_summary_length", 150); | 30 local max_summary_length = module:get_option_number("pastebin_summary_length", 150); |
| 31 local html_preview = module:get_option_boolean("pastebin_html_preview", true); | 31 local html_preview = module:get_option_boolean("pastebin_html_preview", true); |
| 32 | 32 |
| 33 local base_url = module:get_option_string("pastebin_url"); | 33 local base_url = module:get_option_string("pastebin_url", module:http_url()); |
| 34 | 34 |
| 35 -- Seconds a paste should live for in seconds (config is in hours), default 24 hours | 35 -- Seconds a paste should live for in seconds (config is in hours), default 24 hours |
| 36 local expire_after = math.floor(module:get_option_number("pastebin_expire_after", 24) * 3600); | 36 local expire_after = math.floor(module:get_option_number("pastebin_expire_after", 24) * 3600); |
| 37 | 37 |
| 38 local trigger_string = module:get_option_string("pastebin_trigger"); | 38 local trigger_string = module:get_option_string("pastebin_trigger"); |
