Hi,
Be AWARE
If anyone have a download blocker check out the $RevConnectToMe string, as you know this string is sent by
passive users. The String commands the user where the string was sent to, to send his string $ConnectToMe, so if this user has the downloads
blocked the user in passive mode can't download from him. He is a example of how to predict that from happening...
arrRC = {}
function Main()
frmHub:EnableFullData(1)
end
function DataArrival(curUser, data)
if (strsub(data, 1, 15) == "$RevConnectToMe") then
local _,_,towho = strfind(data, "$RevConnectToMe%s+%S+%s+(%S+)|")
if (curUser.iProfile == -1 and GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then
curUser:SendData("*** You can only download from normal users.")
return 1
else
arrRC[towho] = 1 --- If the user is not blocked then is going to send the $Rev string to "towho" send his string $ConnectToMe
end
elseif (strsub(data, 1, 12) == "$ConnectToMe" and curUser.iProfile == -1) then
local _,_,towho = strfind(data, "$ConnectToMe%s+(%S+)%s+.*|")
if (arrRC[curUser.sName] ~= nil) then -- Checks if was sent a $Rev string to him.
arrRC[curUser.sName] = nil
elseif (GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then
curUser:SendData("*** You can only download from normal users.")
return 1
end
end
end
I have seen this error in many download scripts.
Best regards, nErBoS
Hi Nerbos,
I think I understand what this is about. But... will this also possibly hit perfectly honest users?
I have applied the script as I do have some users that come up with a lot of $RevConnectToMe strings, but since I have also had quite a few complaints.
Is there any way of 'checking' their honesty?