How can I keep the users that has -shares out of the hub automatically I have the settings set for 2 gigs in robocop 8.0b and in the main ptokax itself the settings are just blank for now.
MUSICLAB.no-ip.info
Well, this isn't the thread where u should be posting.
Anyway, do you mean negative shares?
If so, try this:
function Main()
frmHub:EnableFullData(1)
end
function DataArrival(tUser, sData)
if strsub(sData, 1, 12) == "$MyINFO $ALL" then
local _,_, sUsername, sDescription, sSpeed, sEmail, iShareSize = strfind(sData, "%$ALL ([^ ]+) ([^$]*)%$ $([^$]+)[^$]%$([^$]*)%$(%S*)%$")
local _,_, sTag = strfind(sDescription or "none", "<(.*)>$")
if sUsername ~= tUser.sName then
tUser:Disconnect()
end
if sDescription then if strfind(sDescription, "mldc") then tUser:Disconnect() end end
if (tonumber(iShareSize) or -1) < 0 then tUser:Disconnect() end
end
end
Cheers
what this and how do I use it
A friend of mines help me setup up the hub all I basically did was left it running this is greak to me. ?(
----------------------------------------------------
function Main()
frmHub:EnableFullData(1)
end
function DataArrival(tUser, sData)
if strsub(sData, 1, 12) == "$MyINFO $ALL" then
local _,_, sUsername, sDescription, sSpeed, sEmail, iShareSize = strfind(sData, "%$ALL ([^ ]+) ([^$]*)%$ $([^$]+)[^$]%$([^$]*)%$(%S*)%$")
local _,_, sTag = strfind(sDescription or "none", "<(.*)>$")
if sUsername ~= tUser.sName then
tUser:Disconnect()
end
if sDescription then if strfind(sDescription, "mldc") then tUser:Disconnect() end end
if (tonumber(iShareSize) or -1) < 0 then tUser:Disconnect() end
end
end
insert it to a new textfile and name it "antimldc.lua" and then put that lua file in the scripts folder of your ptokax
after that restart the scripts using the button in the script editor part of ptokax
Yups, that 's it ;)