mod_stanza_counter_http: revert to use module:get_option_boolean
authorMarco Cirillo <maranda@lightwitch.org>
Tue, 17 Jan 2012 13:58:13 +0000
changeset 568 3d66b0af9a15
parent 567 fe85e18a06cb
child 569 69288d001922
mod_stanza_counter_http: revert to use module:get_option_boolean
mod_stanza_counter/mod_stanza_counter_http.lua
--- a/mod_stanza_counter/mod_stanza_counter_http.lua	Tue Jan 17 13:53:49 2012 +0000
+++ b/mod_stanza_counter/mod_stanza_counter_http.lua	Tue Jan 17 13:58:13 2012 +0000
@@ -53,7 +53,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