Old clients kicker
 

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