PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: [MA][DK][TFH]Basse? on 24 March, 2004, 20:14:11

Title: DC++ vertions stopper
Post by: [MA][DK][TFH]Basse? on 24 March, 2004, 20:14:11
can some one please help me.... the new dc++ ver  0,307... where all useres can see all IP adresses, can anyone make al script to stop only dc++ 0.307??
Title:
Post by: NightLitch on 24 March, 2004, 20:33:29
-- Request by: [MA][DK][TFH]Basse?
-- Created by: NightLitch 2004-03-24

Block = "0.307"

function NewUserConnected(curUser)
local _,_,Version = strfind(curUser.sMyInfoString, "V:(%d+.%d+),")
if Version==nil then
curUser:SendData("ClientChecker", "NoTag Clients is not allowed here.")
curUser:Disconnect()
elseif tonumber(Version) == tonumber(Block) then
curUser:SendData("ClientChecker", "DC++ 0.307 is not allowed here!.")
curUser:Disconnect()
end
end

here you go, should work.

/NL
Title:
Post by: [T-G-T]M@sto on 24 March, 2004, 20:49:45
QuoteOriginally posted by [MA][DK][TFH]Basse?
can some one please help me.... the new dc++ ver  0,307... where all useres can see all IP adresses, can anyone make al script to stop only dc++ 0.307??
Sorry Basse - it's not only 0.307 who can see the IP's
PhantomDC 0.306 can do it too
Title:
Post by: NightLitch on 24 March, 2004, 21:07:20
I don't have the time now to check what $SYNTAX the client use to get the ip.

is it $IP ???
Title:
Post by: NotRabidWombat on 24 March, 2004, 21:41:21
LOL. Windows can do it!

netstat -n -a
ethereal
any decent firewall

You should block Windows. And Mac. And *nix. They can all do it. In fact, just shut down the hub.

NightLitch
The protocol you are thinking of is an extension for:
1) The hub to set a users active IP.
2) Ops to get IPs of all other users.

If a client program makes a network connection, it MUST know the IP. Hence, there is no DC protocol for DC++ to know the IP of someone you get the filelist of (or download from).

-NotRabidWombat