Software /
code /
prosody
Diff
core/stanza_router.lua @ 173:f3a2af4d2ff2
Inbound unsubscribe
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 25 Oct 2008 02:38:24 +0500 |
parent | 172:71247788c7c7 |
child | 174:f9aff1fc7e99 |
line wrap: on
line diff
--- a/core/stanza_router.lua Sat Oct 25 02:29:58 2008 +0500 +++ b/core/stanza_router.lua Sat Oct 25 02:38:24 2008 +0500 @@ -209,7 +209,9 @@ 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);