aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-21 17:43:05 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-21 17:43:05 +0500
commit80c27c9e7906ec203f9d679d2896e59d8c5ad9ff (patch)
tree2eee81c031000fab571f175e17d3b70dd373815d
parent4921ff624f005c1800089f9ef57d42ecd6977412 (diff)
downloadprosody-80c27c9e7906ec203f9d679d2896e59d8c5ad9ff.tar.gz
prosody-80c27c9e7906ec203f9d679d2896e59d8c5ad9ff.zip
stanza_router: Make sure /self events are fired when the 'to' attribute is missing.
-rw-r--r--core/stanza_router.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 71e40681..72ddebd1 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -140,6 +140,7 @@ function core_post_stanza(origin, stanza, preevents)
to_type = '/host';
else
to_type = '/bare';
+ to_self = true;
end
end