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.

Has there been made a script like this?

Old posts that have not been replied to for several years.
Locked
F
Finalizer
Voice
Posts: 3
Joined: Sun Dec 12, 2004 3:33 pm

Has there been made a script like this?

Post by Finalizer »

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.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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
    }
  }
}
F
Finalizer
Voice
Posts: 3
Joined: Sun Dec 12, 2004 3:33 pm

Post by Finalizer »

thank you so mutch :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Re: Has there been made a script like this?

Post by arcane »

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 :-?
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
Locked