mod_selftests: Updated to use module:get_option instead of configmanager

Sat, 08 Aug 2009 23:41:16 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sat, 08 Aug 2009 23:41:16 +0500
changeset 1651
6954d8f314a1
parent 1650
b010d6711527
child 1652
ce6b91c78b9f

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 = {};
 

mercurial