From ac0b566ab429e47490e3d4372e662be4dfee2fe4 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 8 Aug 2009 23:41:16 +0500 Subject: mod_selftests: Updated to use module:get_option instead of configmanager --- plugins/mod_selftests.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/mod_selftests.lua b/plugins/mod_selftests.lua index 6a26dfc3..c4399299 100644 --- a/plugins/mod_selftests.lua +++ b/plugins/mod_selftests.lua @@ -12,8 +12,7 @@ local st = require "util.stanza"; 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 = {}; -- cgit v1.2.3