Diff

plugins/mod_selftests.lua @ 1651:6954d8f314a1

mod_selftests: Updated to use module:get_option instead of configmanager
author Waqas Hussain <waqas20@gmail.com>
date Sat, 08 Aug 2009 23:41:16 +0500
parent 1523:841d61be198f
child 1653:02a55ad3dce1
line wrap: on
line diff
--- 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 = {};