anti-ad in description
 

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-ad in description

Started by lynyrd, 05 March, 2004, 01:47:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lynyrd

hi,

sometimes users advertise via the description or email.
(i dont know if it's already done..but i searched my butt off..did'nt find any) so my idea is a script
that looks for example xxx or blabla.no-ip.com in their description
and disconnects that user at login..
i made a little part of it but dont know how to do it so it works
code:
------------------------------------------------------------------------
--just an example this is not working

description =  {["dns2go"]=1,["myftpsite"]=2,["xxx"]=3,["porn"]=4}

function NewUserConnected(user)
                if not user.bOperator then
                for key, value in D do
                if strfind(user.sMyInfoString, "$MyINFO $ALL " .. description .."%$) then
                user:SendData("you are advertising or have unwanted text in description/email remove ..word.. and reconnect")
                user:Disconnect()
                end
         end
  end
end
------------------------------------------------------------------------
crossing my fingers for help

lynyrd..instant noob just add lua ;)

NightLitch

try this one:

description = {["dns2go"]=1,["myftpsite"]=2,["xxx"]=3,["porn"]=4} 

function NewUserConnected(user) 
	if not user.bOperator then 
		for key, value in D do 
			if strfind(user.sMyInfoString, "$MyINFO $ALL "..user.sName.." " .. description .."<") then 
				user:SendData("you are advertising or have unwanted text in description/email remove ..word.. and reconnect") 
				user:Disconnect() 
			end 
		end 
	end 
end

Maybe work / NL
//NL

nErBoS

Hi,

Try this..

description = {"dns2go","myftpsite","xxx","porn"} 

function NewUserConnected(user, data) 
	for i=1, getn(description) do 
		local s,e, desc = strfind(user.sMyInfoString, "$MyINFO $ALL%s+%S+%s+(.*)<")
		if strfind(desc, description[i]) then
			user:SendData("you are advertising or have unwanted text in description/email remove ..word.. and reconnect") 
			user:Disconnect() 
		end 
	end 
end

Best regards, nErBoS
--## nErBoS Spot ##--

nErBoS

Posted at same time :P

Now you have two eg :)

Best regards, nErBoS
--## nErBoS Spot ##--

pHaTTy

QuoteOriginally posted by NightLitch
try this one:

description = {["dns2go"]=1,["myftpsite"]=2,["xxx"]=3,["porn"]=4} 

function NewUserConnected(user) 
	if not user.bOperator then 
		for key, value in D do 
			if strfind(user.sMyInfoString, "$MyINFO $ALL "..user.sName.." " .. description .."<") then 
				user:SendData("you are advertising or have unwanted text in description/email remove ..word.. and reconnect") 
				user:Disconnect() 
			end 
		end 
	end 
end

Maybe work / NL


errrm what is D? hmm m8 i thinku need some sleep lmao what is word?
Resistance is futile!

pHaTTy

hmm u might as well check the full my info string

table = {
["dns2go"]=1,
["myftpsite"]=2,
["xxx"]=3,
["porn"]=4
}

function NewUserConnected(user) 
	if not user.bOperator then 
		for i,v in table do 
			if strfind(user.sMyInfoString, i) then 
				user:SendData("you are advertising or have unwanted text in description/email remove ..i.. and reconnect") 
				user:Disconnect() 
			end 
		end 
	end 
end
Resistance is futile!

pHaTTy

in fact wudnt even use the cpu timefor the sake of numbers ;)

table = {"dns2go","myftpsite","xxx","porn"}

function NewUserConnected(user) 
	if not user.bOperator then 
		for i,v in table do 
			if strfind(user.sMyInfoString, v) then 
				user:SendData("you are avertising or have unwanted text in description/email remove ..v.. and reconnect") 
				user:Disconnect() 
			end 
		end 
	end 
end
Resistance is futile!

nErBoS

Hi,

No use to use "if not user.bOperator", since you are working in the function NewUserConnected, unless you have made this.. OpConnected = NewUserConnected before.

Best regards, nErBoS
--## nErBoS Spot ##--

pHaTTy

dont need check for operator status as its new user connected not op connected

table = {"dns2go","myftpsite","xxx","porn"}

function NewUserConnected(user) 
	for i,v in table do 
		if strfind(user.sMyInfoString, v) then 
			user:SendData("you are avertising or have unwanted text in description/email remove ..v.. and reconnect") 		user:Disconnect()
		end 
	end 
end
Resistance is futile!

pHaTTy

QuoteOriginally posted by nErBoS
Hi,

No use to use "if not user.bOperator", since you are working in the function NewUserConnected, unless you have made this.. OpConnected = NewUserConnected before.

Best regards, nErBoS

lmao u got there b4 me :p same time post seems common tonight :p
Resistance is futile!

nErBoS

Deja vu :)

Got two this nigth, i better go to sleep.

Best regards, nErBoS
--## nErBoS Spot ##--

pHaTTy

if u also want to play with tables u can do somethign like

table = {

["dns2go"]="Advertising",
["myftpsite"]="Advertising",
["xxx"]="XXX",
["porn"]="Porn",

}

Bot = "BotName";

function NewUserConnected(user) 
	for i,v in table do 
		if strfind(user.sMyInfoString, i) then 
		user:SendData(Bot,"you are avertising or have unwanted text in description/email remove ..i.. and reconnect")
		SendToOps(Bot,user.sName.." has been kicked because of "..v.." in MyInfo string")
 		user:Disconnect()
		end 
	end 
end

later,,
Resistance is futile!

pHaTTy

whoa i didnt see that humm another silly fix lmao :p

table = {

["dns2go"]="Advertising",
["myftpsite"]="Advertising",
["xxx"]="XXX",
["porn"]="Porn",

}

Bot = "BotName";

function NewUserConnected(user) 
	for i,v in table do 
		if strfind(user.sMyInfoString, i) then 
			user:SendData(Bot,"You have "..v.." in description/email, please remove "..i.." and reconnect")
			SendToOps(Bot,user.sName.." has been kicked because of "..v.." in MyInfo string")
			user:Disconnect()
		end 
	end 
end
Resistance is futile!

lynyrd

i got this..

------------------------------------------------------------------------------------------------------------
you are avertising or have unwanted text in description/email remove ..i .. and reconnect
 *** Connection reset by server
------------------------------------------------------------------------------------------------------------
but this really made me happy
thanks phatty =))

pHaTTy

QuoteOriginally posted by lynyrd
i got this..

------------------------------------------------------------------------------------------------------------
you are avertising or have unwanted text in description/email remove ..i .. and reconnect
 *** Connection reset by server
------------------------------------------------------------------------------------------------------------
but this really made me happy
thanks phatty =))

yep im one step ahead :p, have alook at post above urs ;)

then tell me what u see ;)
Resistance is futile!

lynyrd

now it works as a charm!
youre the man phatty =)

pHaTTy

QuoteOriginally posted by lynyrd
now it works as a charm!
youre the man phatty =)

lmao :)
Resistance is futile!

lynyrd

then it should be like this....

code:--------------------------------------------------------------------------------
--made by Phatty

table = {

["dns2go"]="Advertising",
["myftpsite"]="Advertising",
["xxx"]="XXX",
["porn"]="Porn",

}

Bot = "BotName";

function NewUserConnected(user)
   for i,v in table do
      if strfind(user.sMyInfoString, i) then
         user:SendData(Bot,"You have "..v.." in description/email, please remove "..i.." and reconnect")
         SendToOps(Bot,user.sName.." has been kicked because of "..v.." in MyInfo string")
         user:Disconnect()
      end
   end
end
--------------------------------------------------------------------------------

NightLitch

QuoteOriginally posted by (uk-kingdom)pH?tt?
QuoteOriginally posted by NightLitch
try this one:

description = {["dns2go"]=1,["myftpsite"]=2,["xxx"]=3,["porn"]=4} 

function NewUserConnected(user) 
	if not user.bOperator then 
		for key, value in D do 
			if strfind(user.sMyInfoString, "$MyINFO $ALL "..user.sName.." " .. description .."<") then 
				user:SendData("you are advertising or have unwanted text in description/email remove ..word.. and reconnect") 
				user:Disconnect() 
			end 
		end 
	end 
end

Maybe work / NL


errrm what is D? hmm m8 i thinku need some sleep lmao what is word?

lmao, hahahaha I have changed keyboard now... I have trashed my old one now...

Think I was lucky just getting the rest.. Cause when sending an e-mail My Friend just got:

f o e w r i ll / Niglch

there is like 30 vocal's missing....
//NL

NightLitch

#19
this should be my working code i think, am really tired too.... hehe

description = {["dns2go"]=1,["myftpsite"]=2,["xxx"]=3,["porn"]=4} 

function NewUserConnected(user) 
	for value, key in description do 
		if strfind(user.sMyInfoString,value) then 
			user:SendData("you are advertising or have unwanted text in description/email remove "..value.." and reconnect") 
			user:Disconnect() 
		end 
	end 
end
//NL

NightLitch

But then again.. this will take on all e-mail addresses....
//NL

pHaTTy

QuoteOriginally posted by lynyrd
then it should be like this....

code:--------------------------------------------------------------------------------
--made by Phatty

table = {

["dns2go"]="Advertising",
["myftpsite"]="Advertising",
["xxx"]="XXX",
["porn"]="Porn",

}

Bot = "BotName";

function NewUserConnected(user)
   for i,v in table do
      if strfind(user.sMyInfoString, i) then
         user:SendData(Bot,"You have "..v.." in description/email, please remove "..i.." and reconnect")
         SendToOps(Bot,user.sName.." has been kicked because of "..v.." in MyInfo string")
         user:Disconnect()
      end
   end
end
--------------------------------------------------------------------------------

muhahah lmfao, oki then :)))
Resistance is futile!

NightLitch

that goes for almost all of your fine ex's exept nErBoS.
//NL

lynyrd

Zitat:
--------------------------------------------------------------------------------
Originally posted by NightLitch
lmao, hahahaha I have changed keyboard now... I have trashed my old one now...
--------------------------------------------------------------------------------


yeah! it happens to me all the time LOL

pHaTTy

QuoteOriginally posted by NightLitch
that goes for almost all of your fine ex's exept nErBoS.

yah true, but i have seen

someone@acertainhub.no-ip.com

this is advertising :p
Resistance is futile!

SMF spam blocked by CleanTalk