mod_s2s, mod_dialback: Rename s2s-authenticate-legacy event to s2sout-authenticate-legacy for clarity. Also, hello!

This commit is contained in:
Matthew Wild 2013-03-10 11:25:05 +00:00
parent cd8da4a60d
commit f936068a62
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
end
end, 100);
module:hook("s2s-authenticate-legacy", function (event)
module:hook("s2sout-authenticate-legacy", function (event)
module:log("debug", "Initiating dialback...");
initiate_dialback(event.origin);
return true;

View file

@ -287,7 +287,7 @@ function stream_callbacks.streamopened(session, attr)
-- If server is pre-1.0, don't wait for features, just do dialback
if session.version < 1.0 then
if not session.dialback_verifying then
hosts[session.from_host].events.fire_event("s2s-authenticate-legacy", { origin = session });
hosts[session.from_host].events.fire_event("s2sout-authenticate-legacy", { origin = session });
else
s2s_mark_connected(session);
end