equal
deleted
inserted
replaced
569 local filter = initialize_filters(session); |
569 local filter = initialize_filters(session); |
570 local conn = session.conn; |
570 local conn = session.conn; |
571 local w = conn.write; |
571 local w = conn.write; |
572 |
572 |
573 function session.sends2s(t) |
573 function session.sends2s(t) |
574 log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?")); |
574 log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); |
575 if t.name then |
575 if t.name then |
576 t = filter("stanzas/out", t); |
576 t = filter("stanzas/out", t); |
577 end |
577 end |
578 if t then |
578 if t then |
579 t = filter("bytes/out", tostring(t)); |
579 t = filter("bytes/out", tostring(t)); |