+-- 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 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' };