Comparison

plugins/mod_dialback.lua @ 4840:82679fad3a36

Backed out changeset 751510cd558d - obsoleted by 5ef05f32bc42.
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 01:29:30 +0100
parent 4835:751510cd558d
child 4841:ce793cea9f10
comparison
equal deleted inserted replaced
4835:751510cd558d 4840:82679fad3a36
76 dialback_requests[attr.from.."/"..origin.streamid] = origin; 76 dialback_requests[attr.from.."/"..origin.streamid] = origin;
77 77
78 if not origin.from_host then 78 if not origin.from_host then
79 -- Just used for friendlier logging 79 -- Just used for friendlier logging
80 origin.from_host = attr.from; 80 origin.from_host = attr.from;
81 -- COMPAT: Fix ejabberd chopness by resetting the send function
82 origin.log("debug", "Remote server didn't specify a from attr, resetting session.send now that we know where to knock to.");
83 origin.send = function(stanza) hosts[attr.to].events.fire_event("route/remote", { from_host = origin.to_host, to_host = origin.from_host, stanza = stanza}); end
84 end 81 end
85 if not origin.to_host then 82 if not origin.to_host then
86 -- Just used for friendlier logging 83 -- Just used for friendlier logging
87 origin.to_host = attr.to; 84 origin.to_host = attr.to;
88 end 85 end