aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-03-03 13:28:33 +0100
committerKim Alvefur <zash@zash.se>2012-03-03 13:28:33 +0100
commitcb1eb75a470e9a101aee99a7c465964b79bedfbc (patch)
tree29a3672c606d345e51f725e420ae65f7fa392d98 /plugins
parent71528cdc3726be326d6a0afb76f490b7d3c4fcc6 (diff)
downloadprosody-cb1eb75a470e9a101aee99a7c465964b79bedfbc.tar.gz
prosody-cb1eb75a470e9a101aee99a7c465964b79bedfbc.zip
mod_s2s, mod_dialback: Rename event to s2s-authenticate-legacy
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_dialback.lua2
-rw-r--r--plugins/s2s/mod_s2s.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index 5cb59fef..2c2dc795 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -160,7 +160,7 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
end
end, 100);
-module:hook("s2s-no-stream-features", function (event)
+module:hook("s2s-authenticate-legacy", function (event)
initiate_dialback(event.origin);
return true;
end, 100);
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua
index 9ab2ee0a..bebf1962 100644
--- a/plugins/s2s/mod_s2s.lua
+++ b/plugins/s2s/mod_s2s.lua
@@ -233,7 +233,7 @@ function stream_callbacks.streamopened(session, attr)
if session.version < 1.0 then
if not session.dialback_verifying then
log("debug", "Initiating dialback...");
- hosts[session.from_host].events.fire_event("s2s-no-stream-features", { origin = session });
+ hosts[session.from_host].events.fire_event("s2s-authenticate-legacy", { origin = session });
else
s2s_mark_connected(session);
end