PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: Creator on 17 June, 2004, 03:08:34

Title: 1DayIpBanMldcClient
Post by: Creator on 17 June, 2004, 03:08:34
Mldc client
Client keeps on connecting and have no tag an fake share lol.
So 1 day ban.

---------------(BC)*Biohazard clan*(NL)
---------------(BC)*Creator*(NL)

BotName = "(**BioProtectBot**)"

function NewUserConnected(curUser)
if strfind(curUser.sMyInfoString, "mldc", 1) then

curUser:TimeBan(1480)

end
end
---------------Greetz Creator
Title:
Post by: pHaTTy on 17 June, 2004, 03:13:06
QuoteOriginally posted by Creator
Mldc client
Client keeps on connecting and have no tag an fake share lol.
So 1 day ban.

---------------(BC)*Biohazard clan*(NL)
---------------(BC)*Creator*(NL)

BotName = "(**BioProtectBot**)"

function NewUserConnected(curUser)
if strfind(curUser.sMyInfoString, "mldc", 1) then

curUser:TimeBan(1480)

end
end
---------------Greetz Creator


you may wanna change this line

if strfind(curUser.sMyInfoString, "mldc", 1) then

to

if strfind(curUser.sMyInfoString, "mld(%S+)", 1) then

this will check for mldc and mldonkey, altho it cud cause bother if something like 'mldave'

or something, so might as wel just add the extra few ifs ;-) or run thru a table