Old clients kicker
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Old clients kicker

Started by Derk_B_P, 24 May, 2009, 14:14:47

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Derk_B_P

Hello, i need a script.

Create a list of old clients:

["DC++"] = {
         ["0.694"] = 1, --1 = drop
         ["0.695"] = 1, --1 = drop
         ["0.696"] = 1, --1 = drop
         ...
                }

If user join hub with his tag, then bot drop him with message: "Your client is to old. Please change client."

Derk_B_P

#1
Download this script.

Change:
tCfg = {
	--{"Tag","Version" or {"Version-A","Version-B","Version-C"},{Profile table}},
	Clients = {	
		--DC++ 0.670 -> 0.699 & 0.707
		{"^D*C*%+%+$",
		{"^0%.6[7-9][0-9]$","0%.707","0%.694"},
		{[-1] = false,[0] = false,[1] = false,[2] = false,[3] = false},
		},
		--RSX++
		{"^RSX%+%+$",
		"1.00",
		{[-1] = false,[0] = false,[1] = false,[2] = false,[3] = false},
		},
		--Apex
		{"^ApexDC%+%+$",
		"1.1.0",
		{[-1] = false,[0] = false,[1] = false,[2] = false,[3] = false},
		},
	},
	-- Enter Message to be sent when client is not allowed.
	Msg = "Your client is not allowed in this hub.",
	--Allow all client in GUI, restrict only with script?
	AnyTag = true,
}


Result:
*** Your client [FlylinkDC++ (r373)] is not allowed in this hub.
*** Your client [DC++ 0.694] is not allowed in this hub.
*** Your client [StrgDC++ 2.22] is not allowed in this hub.
*** Your client [pl++ 5.72] is not allowed in this hub.

I want to configure script to drop only DC++ clients, all versions (0.694, 0.695, 0.696 etc).
And allow all other clients.

PtokaX 0.4.1.1

Derk_B_P

Change line 45 to "if CheckClient(c,v,i) then"
Now all clients can enter the hub, include DC++ 0.694

tCfg = {...} didn`t change.

Derk_B_P

Thanks a lot! Script work perfectly.

SMF spam blocked by CleanTalk