Mercurial > prosody-modules
diff mod_candy/mod_candy.lua @ 2454:51cf82d36a8a
mod_candy: Add support for enabling Candy debug mode from Prosodys config
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 20 Jan 2017 01:30:34 +0100 |
parents | f36a6dcc05ef |
children |
line wrap: on
line diff
--- a/mod_candy/mod_candy.lua Fri Jan 20 01:21:21 2017 +0100 +++ b/mod_candy/mod_candy.lua Fri Jan 20 01:30:34 2017 +0100 @@ -8,6 +8,7 @@ local serve = module:depends"http_files".serve; local candy_rooms = module:get_option_array("candy_rooms"); +local candy_debug = module:get_option_boolean("candy_debug", false); local function get_autojoin() if candy_rooms then @@ -47,6 +48,7 @@ autojoin = get_autojoin(); version = prosody.version; host = module:get_host(); + debug = candy_debug; anonymous = module:get_option_string("authentication") == "anonymous"; })); end;