Changeset

568:3d66b0af9a15

mod_stanza_counter_http: revert to use module:get_option_boolean
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 17 Jan 2012 13:58:13 +0000
parents 567:fe85e18a06cb
children 569:69288d001922
files mod_stanza_counter/mod_stanza_counter_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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