stanza_router: Make sure /self events are fired when the 'to' attribute is missing.

Sun, 21 Feb 2010 17:43:05 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 21 Feb 2010 17:43:05 +0500
changeset 2687
f9bc95aadc26
parent 2683
9e8000c84fef
child 2688
d0d38fcaade0

stanza_router: Make sure /self events are fired when the 'to' attribute is missing.

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial