PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: 6Marilyn6Manson6 on 02 July, 2004, 07:34:34

Title: Negative SHARE
Post by: 6Marilyn6Manson6 on 02 July, 2004, 07:34:34
Boys I have a problem in my HUB. Do users often enter with negative share, is there some scripts that it prevents this? Because the share is of 0gb, that I can do??? Thanks...



Address: planetarium.no-ip.org
Title:
Post by: Corayzon on 02 July, 2004, 10:02:55
hey 6Marilyn6Manson6, ...

this should solve your problems =]

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

noza
Title: Hay!!!Script problem!!!Please help !!!
Post by: juda on 09 August, 2004, 17:46:18
Script working without errors,but users with "none" tag in e-mail and negative share,can still connect.Please tell me where I do mistakes.....ciao!!!
Title:
Post by: ((UKSN))shad_dow on 09 August, 2004, 18:17:56
lo crayzon

yea i know the ones hes on about

client version = 2.02 (NMDC 2 , there claiming to be)

share = 0

email and description = None ,none or NoNe

plus there ip start with 38.118.154.*

hope thisinfo helps

yours shad

ps. nice script , keep ptokax alive alive`o