aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index b4ec677f..599e7882 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -198,7 +198,7 @@ function core_route_stanza(origin, stanza)
end
end
else
- send(origin, st.presence({from=user.."@"..host, to=origin.username.."@"..origin.host, type="unsubscribed"}));
+ send(origin, st.presence({from=user.."@"..host, to=stanza.attr.from, type="unsubscribed"}));
end
elseif stanza.attr.type == "subscribe" then
-- TODO