--- a/core/stanza_router.lua Tue Jun 02 21:22:24 2009 +0500
+++ b/core/stanza_router.lua Wed Jun 03 08:00:07 2009 +0500
@@ -149,6 +149,9 @@
to_type = '/full';
else
to_type = '/bare';
+ if node == origin.username and host == origin.host then
+ stanza.attr.to = nil;
+ end
end
else
if host then