Disallow old DC++ clients without TTH support
 

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

Disallow old DC++ clients without TTH support

Started by Northwind, 28 February, 2006, 12:36:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Northwind

I modded a little this great script by PPK. Now it can ban user for specific time and it shows link for dc++ home page. I know this is not big deal but... anyway... hehehe... first post here in backupped luaboard. Hope you like it

-- Simply script to disallow old DC++ clients without TTH support by PPK
-- Timeban,Botname and dc++ addy by Northwind 27-02-2006

sBot = frmHub:GetHubBotName()
tban = 5 --TimeBan in minutes

function NewUserConnected(curUser)
	if curUser.bHasTag then
		if curUser.sClient == "DC++" then
			if tonumber(curUser.sClientVersion) < 0.401 then
				curUser:SendData(sBot,"Your DC++ client version: "..curUser.sClientVersion.. " is not allowed here. Use atleast version 0.401")
				curUser:SendData(sBot,"You have been "..tban.." min tempbanned. Get newest DC++ from http://dcplusplus.sourceforge.net/")
			curUser:TimeBan(tban)
		return 1
	end
end
end
end


blackwings

this script doesn't check if the client can use hash, it just check if the user has a tag,
if user use DC++ and if the user has v 0.401 or newer.


Northwind

#2
Changed topic name to be more specific ;-)


SMF spam blocked by CleanTalk