Diff

core/stanza_router.lua @ 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
parent 2624:99b60dc15174
child 2917:2a6552b22f01
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