aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-25 02:38:24 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-25 02:38:24 +0500
commit2ab824859d622653d405e8ea0515e3acca9180f4 (patch)
tree73fe3823eff8a15ce74fabbb36dd18c7f573084e /core/stanza_router.lua
parent6c822abf42a548865e7907f1f02c8e3344580b4d (diff)
downloadprosody-2ab824859d622653d405e8ea0515e3acca9180f4.tar.gz
prosody-2ab824859d622653d405e8ea0515e3acca9180f4.zip
Inbound unsubscribe
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 3126bb75..16658f30 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -209,7 +209,9 @@ function core_route_stanza(origin, stanza)
elseif stanza.attr.type == "subscribe" then
-- TODO
elseif stanza.attr.type == "unsubscribe" then
- -- TODO
+ if rostermanager.process_inbound_unsubscribe(node, host, from_bare) then
+ rostermanager.roster_push(node, host, from_bare);
+ end
elseif stanza.attr.type == "subscribed" then
if rostermanager.process_inbound_subscription_approval(node, host, from_bare) then
rostermanager.roster_push(node, host, from_bare);