Software /
code /
prosody
Changeset
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 (2009-08-08) |
parents | 1650:b010d6711527 |
children | 1652:ce6b91c78b9f |
files | plugins/mod_selftests.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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 = {};