core/s2smanager.lua

changeset 2613
afa20941e098
parent 2545
99700e601d16
child 2621
4d0f9f50fdd8
--- a/core/s2smanager.lua	Fri Feb 12 04:25:37 2010 +0500
+++ b/core/s2smanager.lua	Fri Feb 12 04:30:17 2010 +0500
@@ -389,7 +389,7 @@
 			local features = st.stanza("stream:features");
 			
 			if session.to_host then
-				hosts[session.to_host].events.fire_event("s2s-stream-features", { session = session, features = features });
+				hosts[session.to_host].events.fire_event("s2s-stream-features", { origin = session, features = features });
 			else
 				(session.log or log)("warn", "No 'to' on stream header from %s means we can't offer any features", session.from_host or "unknown host");
 			end

mercurial