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.
Old posts that have not been replied to for several years.
Finalizer
Voice
Posts: 3 Joined: Sun Dec 12, 2004 3:33 pm
Post
by Finalizer » Sun Dec 12, 2004 3:41 pm
a script that bans everyone that doesnt use a "code" when he says something in the chan
even bans ppl that are added to friends list.
but not opers
so if the code is help
then it wont ban the user if he has the word help in his tekst.
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sun Dec 12, 2004 6:06 pm
Code: Select all
set r "help only allowed"
bind pubm - * check
proc check {n u h c t} {
if ![string match -nocase *help* $t] {
if ![matchattr $h o|o $c] {
newchanban $c [maskhost $n!$u] helponly $::r
putkick $c $n $::r
}
}
}
Finalizer
Voice
Posts: 3 Joined: Sun Dec 12, 2004 3:33 pm
Post
by Finalizer » Mon Dec 13, 2004 10:36 am
thank you so mutch
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Mon Dec 13, 2004 9:28 pm
But here we are checking if, every string has "help" in it, otherwise kick/ban that person?
How about to check for a triggers say "!help, .help, @help" etc to determine it is a code.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
arcane
Master
Posts: 280 Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:
Post
by arcane » Tue Dec 14, 2004 7:31 am
Finalizer wrote:
so if the code is help
then it wont ban the user if he has the word help in his tekst.
it's just what he wantet
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Tue Dec 14, 2004 7:46 am
Hehe, okay I miss-understood. Him typing "code" in quotation marks, I thought he wanted a trigger or something.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================