Mercurial > prosody-modules
comparison mod_cleanup_http/mod_cleanup_http.lua @ 611:d87a9e1e6d30
mod_cleanup_http: updated banner.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sun, 12 Feb 2012 18:26:02 +0000 |
parents | 50dc20e96a78 |
children |
comparison
equal
deleted
inserted
replaced
610:50dc20e96a78 | 611:d87a9e1e6d30 |
---|---|
1 -- Auto-cleanup BOSH stuff module is added globally. | 1 -- Auto-cleanup for Global BOSH modules. |
2 -- Should take care of spring cleaning without messing in either the console, or restarting | |
2 | 3 |
3 module:set_global() | 4 module:set_global() |
4 | 5 |
5 local http_modules = module:get_option("cleanup_http_modules", {}) | 6 local http_modules = module:get_option("cleanup_http_modules", {}) |
6 if type(http_modules) ~= "table" then module:log("error", "cleanup_http_modules needs to be a module.") ; return false end | 7 if type(http_modules) ~= "table" then module:log("error", "cleanup_http_modules needs to be a module.") ; return false end |