# HG changeset patch # User Waqas Hussain # Date 1249756876 -18000 # Node ID 6954d8f314a1f2c78127aea221aa3896e3448d32 # Parent b010d67115274df2f3faadf9752313d315662672 mod_selftests: Updated to use module:get_option instead of configmanager diff -r b010d6711527 -r 6954d8f314a1 plugins/mod_selftests.lua --- 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 = {};