Anti Net-Limiter Script Conversion?
 

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

Anti Net-Limiter Script Conversion?

Started by QuikThinker, 11 March, 2005, 03:57:32

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

QuikThinker

Can sum1 convert this pls?
-- antinetlimiter for QuikThinker by bastya_elvtars
todo=2 -- 1 to disconnect, 2 to timeban, 3 to ban
timeban=30 -- in minutes

-- no edit below plz

OpConnected=NewUserConnected
function DataArrival(user,data)
	if strsub(data, 1, 7) == "$MyINFO" then
		if strfind(strlower(data),"netlimiter") then
			local what,doin=hasto(user)
			user:SendData("NoNetLimiter","You are using NetLimiter, now you are "..what)
			SendToOps("NoNetLimiter",user.sName.." is using netlimiter, he/she was "..what)
			return doin
		end
	end
end

function hasto(user)
	if todo==1 then
		return "disconnected.",user:Disconnect()
	elseif todo==2 then
		return "timebanned for "..timeban.." minutes.",user:TimeBan(timeban)
	elseif todo==3 then
		return "banned.",user:Ban()
	end
end

Thanx in advance.

the_pest

i can
-- antinetlimiter for QuikThinker by bastya_elvtars
-- to LUA 5 converted on Earth
todo=2 -- 1 to disconnect, 2 to timeban, 3 to ban
timeban=30 -- in minutes

-- no edit below plz

OpConnected=NewUserConnected
function MyINFOArrival(curUser,data)
	if curUser.sConnection then
		if string.find(string.lower(data),"netlimiter") then
			local what,doin=hasto(curUser)
			curUser:SendData("NoNetLimiter","You are using NetLimiter, now you are "..what)
			SendToOps("NoNetLimiter",curUser.sName.." is using netlimiter, he/she was "..what)
			return doin
		end
	end
end

function hasto(curUser)
	if todo == 1 then
		return "disconnected.",curUser:Disconnect()
	elseif todo == 2 then
		return "timebanned for "..timeban.." minutes.",curUser:TimeBan(timeban)
	elseif todo == 3 then
		return "banned.",curUser:Ban()
	end
end
use

sander815

is this to supposed tokick people who use netlimiter to limu upload?

QuikThinker

That's the idea anyway.

Pothead

Netlimiter in connection is some DC, not actual use of the program.  Ask yourself what's worse, people telling you they using it (what this script will catch) or peope using it, but not telling you. ?

SMF spam blocked by CleanTalk