core/s2smanager.lua

changeset 3224
9dd54a708523
parent 3152
c6091977624b
child 3265
9374f84c6677
--- a/core/s2smanager.lua	Thu Jun 10 01:55:32 2010 +0100
+++ b/core/s2smanager.lua	Thu Jun 10 02:07:48 2010 +0100
@@ -140,13 +140,13 @@
 	session.log = log;
 	local filter = initialize_filters(session);
 	session.sends2s = function (t)
+		log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^([^>]*>?)"));
 		if t.name then
 			t = filter("stanzas/out", t);
 		end
 		if t then
 			t = filter("bytes/out", tostring(t));
 			if t then
-				log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^([^>]*>?)"));
 				return w(conn, t);
 			end
 		end

mercurial