Sat, 08 Aug 2009 23:41:16 +0500
mod_selftests: Updated to use module:get_option instead of configmanager
plugins/mod_selftests.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_selftests.lua Sat Aug 08 23:38:02 2009 +0500 +++ b/plugins/mod_selftests.lua Sat Aug 08 23:41:16 2009 +0500 @@ -12,8 +12,7 @@ local register_component = require "core.componentmanager".register_component; local core_route_stanza = core_route_stanza; local socket = require "socket"; -local config = require "core.configmanager"; -local ping_hosts = config.get("*", "mod_selftests", "ping_hosts") or { "coversant.interop.xmpp.org", "djabberd.interop.xmpp.org", "djabberd-trunk.interop.xmpp.org", "ejabberd.interop.xmpp.org", "openfire.interop.xmpp.org" }; +local ping_hosts = module:get_option("ping_hosts") or { "coversant.interop.xmpp.org", "djabberd.interop.xmpp.org", "djabberd-trunk.interop.xmpp.org", "ejabberd.interop.xmpp.org", "openfire.interop.xmpp.org" }; local open_pings = {};