I have this scripts..... but.. not found:
BadShare = 11534336 -- Bad Share Value
BanTime = 1440 --In minutes
msg = "\r\n\r\n\tBad share value detected!\r\n"
msg = msg.."\tYour share [ "..format("%.2f GB",BadShare /(1024 * 1024 * 1024)).." ] is unacceptable\r\n"
msg = msg.."\tYour banned for [ "..BanTime.." ] minutes.\r\n\r\n"
function DataArrival(user,data)
if strsub(data, 1,7) == "$MyINFO" then
local s,e,share = strfind(data, "(%d+)%$%|$")
if tonumber(share) == BadShare then
user:SendData(msg)
user:TimeBan(BanTime)
end
end
end
why? thanks a lot
don't understand your problem , please explain more :)
and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE] (without the *), it makes it easier for everyone to look at the code etc.
QuoteOriginally posted by blackwings
don't understand your problem , please explain more :)
and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE] (without the *), it makes it easier for everyone to look at the code etc.
now is ok but..script not found :C
use a CDM client for that , much better and more acurate
and why waste resources on the hub when clients can do it ;o)
Typhoon?
I use iDC++ but.. in my hub for script use DC++ and i have login of mldonkey and... with this script.. i want stop it.. is it possible? what is error? thanks a lot
hi MM
use this one for a try ..
if strfind(user.sMyInfoString, "mldonkey", 1, 1) or strfind(user.sMyInfoString, "replika", 1, 1) or strfind(user.sMyInfoString, "pepek", 1, 1) or strfind(user.sMyInfoString, "mldc", 1, 1) then
user:SendData(BotName, "All mlDonkey traces cause disconnection ... begone foul swine ... |")
user:Disconnect()
return 1
end
hope you figure it out ;o)
Typhoon?