help with anti-advert please
 

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

help with anti-advert please

Started by Tw?sT?d-d?v, 21 February, 2007, 21:03:00

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tw?sT?d-d?v

How can i alter this so that i can add words with spaces in them ?
EG ,     ["h u b"]=48,
I have tried just adding these but they still get past

-------------------------------------------------------------------------------- 
-- anti advertise 
-- OPs cannot post adverts in PM but Master can :P 
-------------------------------------------------------------------------------- 
antiadds = { 
["gotdns"]=1, 
["bounceme.net"]=2, 
["hopto.org"]=3, 
["myftp.biz"]=4, 
["myftp.org"]=5, 
["myvnc.com"]=6, 
["ip.biz"]=7, 
["ip.info"]=8, 
["ip.org"]=9, 
["redirectme.net"]=10, 
["servebeer.com"]=11, 
["servecounterstrike.com"]=12, 
["serveftp.com"]=13, 
["servegame.com"]=14, 
["servehalflife.com"]=15, 
["servehttp.com"]=16, 
["servemp3.com"]=17, 
["servepics.com"]=18, 
["servequake.com"]=19, 
["sytes.net"]=20, 
["zapto.org"]=21, 
["ciscofreak.com"]=22, 
["damnserver.com"]=23, 
["http://"]=24, 
["ditchyourip.com"]=25, 
["dnsiskinky.com"]=26, 
["geekgalaxy.com"]=27, 
["freaks.com"]=28, 
["ip.ca"]=29, 
["ip.co.uk"]=30, 
["ip.com"]=31, 
["ip.net"]=32, 
["point2this.com"]=33, 
["securityexploits.com"]=34, 
["securitytactics.com"]=35, 
["servehumour.com"]=36, 
["servep2p.com"]=37, 
["servesarcasm.com"]=38, 
["stufftoread.com"]=39, 
["workisborring.com"]=40, 
["musicdvdworld"]=41, 
["dchub://"]=42, 
["www."]=43, 
["hub"]=44,
["no-ip"]=45,
["dash"]=46,
["dot"]=47,
} 
-------------------------------------------------------------- 
Bot = frmHub:GetHubBotName() 
function ToArrival(user, data) 
if user.iProfile ~= 0  and user.iProfile ~= 4 and user.iProfile ~= 5 then
for key,a in antiadds do 
if( string.find(string.lower(data), key) ) then 
         user:SendPM(Bot, "Sorry, your PM was blocked. Please use main chat to post adverts!") 
         return 1 
         end 
end 
end 
end 
-- EOF



bastya_elvtars

Try  %s+ where you expect spaces.
Everything could have been anything else and it would have just as much meaning.

Tw?sT?d-d?v

Thx m8     seems to be working fine ...   (Had no complaints yet anyway)

jack_port1000

this code where to paste ? just show me the path
some of user advert like this join 172....233......222...xyz  is this bot block them and where keep this all code u showing here sorry i m totaly new for this

Madman

paste in to notepad, and then save it as a .lua file. Then place the lua file in the Scripts folder
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Tw?sT?d-d?v

If that dont work for you   ..  download the attachment and place in the scripts folder & restart scripts

SMF spam blocked by CleanTalk