Diff

mod_stanza_counter/mod_stanza_counter_http.lua @ 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
parent 562:b3f8435e661c
child 600:03be4622454f
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