Changeset

2685:f9bc95aadc26

stanza_router: Make sure /self events are fired when the 'to' attribute is missing.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 21 Feb 2010 17:43:05 +0500
parents 2683:9e8000c84fef
children 2686:d0d38fcaade0
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Sat Feb 20 00:52:28 2010 +0000
+++ b/core/stanza_router.lua	Sun Feb 21 17:43:05 2010 +0500
@@ -140,6 +140,7 @@
 			to_type = '/host';
 		else
 			to_type = '/bare';
+			to_self = true;
 		end
 	end