X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_selftests.lua;h=9b0e5a7bb739f282e51b26c38e3dfd80ddf46edb;hb=9959598c33a0689ffb814bc4001d278aeeb045c7;hp=4f12850479582e83c771c3f6f5660baabd427107;hpb=62c09d33590c76d7618fb6c4edd7779c9ea0dd88;p=prosody.git diff --git a/plugins/mod_selftests.lua b/plugins/mod_selftests.lua index 4f128504..9b0e5a7b 100644 --- a/plugins/mod_selftests.lua +++ b/plugins/mod_selftests.lua @@ -1,10 +1,19 @@ +-- Prosody IM v0.4 +-- Copyright (C) 2008-2009 Matthew Wild +-- Copyright (C) 2008-2009 Waqas Hussain +-- +-- This project is MIT/X11 licensed. Please see the +-- COPYING file in the source package for more information. +-- + + 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 { "jabber.org" }; +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 open_pings = {}; @@ -36,7 +45,7 @@ if tests_jid and host then local our_origin = hosts[host]; - add_event_hook("server-started", + module:add_event_hook("server-started", function () local id = st.new_id(); local ping_attr = { xmlns = 'urn:xmpp:ping' };