no modemuser
 

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

no modemuser

Started by gizmo, 21 January, 2004, 18:44:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gizmo

is their any script who blocks medem users 28.8 and 56.6 users

NightLitch

here taken from my archive:

BotName = "GUARD"

function NewUserConnected(curUser)
    data=curUser.sMyInfoString
    s,e,cmd = strfind( data, "[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+([^$]+)" ) 

if (strfind(cmd,"28.8K")) then
curUser:SendPM(BotName,"no28.8 modem allowed in here ...")
curUser:Disconnect()
end
if (strfind(cmd,"33.6K")) then
curUser:SendPM(BotName,"no 33.6k modem allowed in here ...")
curUser:Disconnect()
end
if (strfind(cmd,"56K")) then
curUser:SendPM(BotName,"no 56k modem allowed in here ...")
curUser:Disconnect()
end
if (strfind(cmd,"ISDN")) then
curUser:SendPM(BotName,"no ISDN allowed in here ...")
curUser:Disconnect()
end
end
//NL

gizmo


gizmo

this error comes after a while  


1:  function `strfind' [C]
   2:  function `NewUserConnected' at line 5 [file `...lone grejer1\Potax clone 4\scripts\no_modem.lua

kepp

BotName = "GUARD"

function NewUserConnected(curUser)
	data=curUser.sMyInfoString
	s,e,cmd = strfind( data, "[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+([^$]+)" ) 

		if (strfind(cmd,"28.8K")) then
			curUser:SendPM(BotName,"no 28.8 modem allowed in here ...")
			curUser:Disconnect()

		elseif (strfind(cmd,"33.6K")) then
			curUser:SendPM(BotName,"no 33.6k modem allowed in here ...")
			curUser:Disconnect()

		elseif (strfind(cmd,"56K")) then
			curUser:SendPM(BotName,"no 56k modem allowed in here ...")
			curUser:Disconnect()

		elseif (strfind(cmd,"ISDN")) then
			curUser:SendPM(BotName,"no ISDN allowed in here ...")
			curUser:Disconnect()
	end
end
Guarding    

SMF spam blocked by CleanTalk