tabValidate = {}
function Main()
frmHub:EnableFullData(1)
SetTimer(1000)
StartTimer()
end
function DataArrival(user, data)
if not user.bOperator then
if strfind(data, "^%$ValidateNick") then
user:SendData("$GetPass|")
tabValidate[user.sName] = Clock()
return
end
if tabValidate[user.sName] then
if strfind(data, "^$MyPass") then
local _, _, Pass = strfind(data, "%s+(%S+)%s*|")
if Pass == "PassWord" then
user:SendData("$LogedIn|")
return
end
user:SendData("$BadPass|")
user:Disconnect()
end
end
end
end
function OnTimer()
for id, value in tabValidate do
if (tabValidate[id] + 3) > Clock() then tabValidate[id] = nil end
end
end
i tested this one time and it didnt seem to work
Could you explain what didn't work, you dc client isn't asking you for a password?
Hi OpiumVolage,
Does it work on IceCube versions as well ?
Expect the unneeded frmHub:EnableFullData(1) in code for IceCube, i think that yes.
OK thanks buddy ;) Will try that :)
it kinda does, wait and ill explain
I get the repated message that 'Clock is a nil value, perhaps because I am using TD4. Can I just remove the clock function?
Try to change Clock() to lowercase letters only
It doesn't ask me for a password. What have I to do?
thx