Software /
code /
prosody
Comparison
plugins/mod_http_errors.lua @ 5371:706206e191e8
mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 01:27:38 +0100 |
parent | 4850:3662091d303c |
child | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
5370:7838acadb0fa | 5371:706206e191e8 |
---|---|
1 module:set_global(); | 1 module:set_global(); |
2 | 2 |
3 local server = require "net.http.server"; | 3 local server = require "net.http.server"; |
4 local codes = require "net.http.codes"; | 4 local codes = require "net.http.codes"; |
5 local termcolours = require "util.termcolours"; | |
6 | 5 |
7 local show_private = module:get_option_boolean("http_errors_detailed", false); | 6 local show_private = module:get_option_boolean("http_errors_detailed", false); |
8 local always_serve = module:get_option_boolean("http_errors_always_show", true); | 7 local always_serve = module:get_option_boolean("http_errors_always_show", true); |
9 local default_message = { module:get_option_string("http_errors_default_message", "That's all I know.") }; | 8 local default_message = { module:get_option_string("http_errors_default_message", "That's all I know.") }; |
10 local default_messages = { | 9 local default_messages = { |