# HG changeset patch # User Waqas Hussain # Date 1239751280 -18000 # Node ID beb039827c9ffbf9d8823c74ad6cb2d3f9c8e6ad # Parent a2dd83bc3afa05932e3ca7789f2fb79c0c59c4f5 Stopped using presencemanager in stanza_router diff -r a2dd83bc3afa -r beb039827c9f core/stanza_router.lua --- a/core/stanza_router.lua Wed Apr 15 02:10:51 2009 +0500 +++ b/core/stanza_router.lua Wed Apr 15 04:21:20 2009 +0500 @@ -24,9 +24,9 @@ local modules_handle_stanza = require "core.modulemanager".handle_stanza; local component_handle_stanza = require "core.componentmanager".handle_stanza; -local handle_outbound_presence_subscriptions_and_probes = require "core.presencemanager".handle_outbound_presence_subscriptions_and_probes; -local handle_inbound_presence_subscriptions_and_probes = require "core.presencemanager".handle_inbound_presence_subscriptions_and_probes; -local handle_normal_presence = require "core.presencemanager".handle_normal_presence; +local handle_outbound_presence_subscriptions_and_probes = function()end;--require "core.presencemanager".handle_outbound_presence_subscriptions_and_probes; +local handle_inbound_presence_subscriptions_and_probes = function()end;--require "core.presencemanager".handle_inbound_presence_subscriptions_and_probes; +local handle_normal_presence = function()end;--require "core.presencemanager".handle_normal_presence; local format = string.format; local tostring = tostring; diff -r a2dd83bc3afa -r beb039827c9f plugins/mod_presence.lua --- a/plugins/mod_presence.lua Wed Apr 15 02:10:51 2009 +0500 +++ b/plugins/mod_presence.lua Wed Apr 15 04:21:20 2009 +0500 @@ -243,7 +243,7 @@ if to == nil and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error" then handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); elseif not to then - handle_normal_presence(origin, stanza); + handle_normal_presence(origin, stanza, core_route_stanza); else core_route_stanza(origin, stanza); end @@ -263,5 +263,3 @@ module.unload = function() remove_handler(module:get_host().."/presence", presence_handler); end - -return _M;