equal
deleted
inserted
replaced
244 elseif stanza.name == "iq" and type == "set" then |
244 elseif stanza.name == "iq" and type == "set" then |
245 local reply, from, to, sid = set_activation(stanza); |
245 local reply, from, to, sid = set_activation(stanza); |
246 if reply ~= nil and from ~= nil and to ~= nil and sid ~= nil then |
246 if reply ~= nil and from ~= nil and to ~= nil and sid ~= nil then |
247 local sha = sha1(sid .. from .. to, true); |
247 local sha = sha1(sid .. from .. to, true); |
248 if transfers[sha] == nil then |
248 if transfers[sha] == nil then |
249 module:log("error", "transfers[sha]: nil"); |
249 module:log("warn", "Recieved request to activate transfer with no participants"); |
|
250 module:log("debug", "The sha1 of the transfer which should be activated was: %s", sha); |
250 elseif(transfers[sha] ~= nil and transfers[sha].initiator ~= nil and transfers[sha].target ~= nil) then |
251 elseif(transfers[sha] ~= nil and transfers[sha].initiator ~= nil and transfers[sha].target ~= nil) then |
251 origin.send(reply); |
252 origin.send(reply); |
252 transfers[sha].activated = true; |
253 transfers[sha].activated = true; |
253 end |
254 end |
254 else |
255 else |