plugins/mod_dialback.lua
changeset 11683 d9499b7bcd54
parent 11564 3bbb1af92514
child 12981 74b9e05af71e
equal deleted inserted replaced
11682:f90a337d81a8 11683:d9499b7bcd54
    75 
    75 
    76 module:hook("stanza/jabber:server:dialback:result", function(event)
    76 module:hook("stanza/jabber:server:dialback:result", function(event)
    77 	local origin, stanza = event.origin, event.stanza;
    77 	local origin, stanza = event.origin, event.stanza;
    78 
    78 
    79 	if origin.type == "s2sin_unauthed" or origin.type == "s2sin" then
    79 	if origin.type == "s2sin_unauthed" or origin.type == "s2sin" then
    80 		-- he wants to be identified through dialback
    80 		-- They want to be identified through dialback
    81 		-- We need to check the key with the Authoritative server
    81 		-- We need to check the key with the Authoritative server
    82 		local attr = stanza.attr;
    82 		local attr = stanza.attr;
    83 		if not attr.to or not attr.from then
    83 		if not attr.to or not attr.from then
    84 			origin.log("debug", "Missing Dialback addressing (from=%q, to=%q)", attr.from, attr.to);
    84 			origin.log("debug", "Missing Dialback addressing (from=%q, to=%q)", attr.from, attr.to);
    85 			origin:close("improper-addressing");
    85 			origin:close("improper-addressing");