Mercurial > prosody-modules
diff mod_register_json/mod_register_json.lua @ 566:39a612eb4431
mod_register_json: revert to use module:get_option_boolean
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Tue, 17 Jan 2012 13:52:48 +0000 |
parents | cd5581b58fdc |
children | 1004d7176be2 |
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua Tue Jan 17 01:43:50 2012 +0000 +++ b/mod_register_json/mod_register_json.lua Tue Jan 17 13:52:48 2012 +0000 @@ -125,7 +125,7 @@ end -- if there are no handlers left clean and close the socket, doesn't work with server_event - local event = require "core.configmanager".get("*", "core", "use_libevent") + local event = module:get_option_boolen("use_libevent", false) if not event then for _, options in ipairs(ports) do