This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

spam script

Old posts that have not been replied to for several years.
Locked
A
AW

spam script

Post by AW »

Hi,
i will appreciate for your kind help regarding this as well

is there anyway to deal with this creteria..

in my spam scriot i have a spamlist like
set spamwords {
"http://"
"*join #*"
}

let say channel is set to #A, when user will say join #B, will get kick/ban, but sometime like if user says, i like to join #A, now this user will get kick/ban too, is there anyway to ignore this?? i mean how do i set a check for this?? example will be appreciated.
thanks
regards
AW
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

Add an if statement and compare the channel the user said to either a list of allowed channels or one channel. The best way might be to have a allowed list of words to be exceptions to the badword matches and check that list first, so if the word is in that allowed list it would skip the badword check and return. I'm far too tired right now to write up an example, but if you still need one later I could post it.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You would have to employ a monkey to sit at the keyboard and chekc if it is a question, and not spam. Monkeys are clean, efficient and will work for peanuts. Trust me, we employ enough of them.

{CRAP OFF}

You would have to include some for of inteligence into the script.

It's simple enough to setup a exception list. IE, trigger spam if some1 says "sex", but not if they say "what sex are you". But even the most simplof sentances would come in contact with this exception list.

You would need to be able to test the structure of a sentance (the placment of the words). Somthing like that employed by the ASK.com search engine.

However, it is doubtful you could make a fast enough one for eggdrop.
A
AW

Post by AW »

Thanks guys, but tainted that will be great if you get a chance to write up an example.
thanks again
regards
aw
Locked