Comparison

plugins/mod_selftests.lua @ 438:193f9dd64f17

Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store.
author Matthew Wild <mwild1@gmail.com>
date Thu, 27 Nov 2008 03:12:12 +0000
parent 428:e717ecc97d2e
child 519:cccd610a0ef9
comparison
equal deleted inserted replaced
437:c1a720db2157 438:193f9dd64f17
34 end 34 end
35 end); 35 end);
36 36
37 37
38 local our_origin = hosts[host]; 38 local our_origin = hosts[host];
39 add_event_hook("server-started", 39 module:add_event_hook("server-started",
40 function () 40 function ()
41 local id = st.new_id(); 41 local id = st.new_id();
42 local ping_attr = { xmlns = 'urn:xmpp:ping' }; 42 local ping_attr = { xmlns = 'urn:xmpp:ping' };
43 local function send_ping(to) 43 local function send_ping(to)
44 log("info", "Sending ping to %s", to); 44 log("info", "Sending ping to %s", to);