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.

Question about tsunami.tcl

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Question about tsunami.tcl

Post by Sir_Fz »

Code: Select all

      foreach luser $blist {
        if {[isop $nick $chan]} {return 0}
        if {[isvoice $nick $chan]} {return 0}
        if {![onchan $luser $chan]} {
          continue
        }
        set mask "*!*@[lindex [split [getchanhost $luser [strlwr $chan]] @] 1]"
        newchanban [strlwr $chan] $mask $::botnick $::linesbreas $::linebtime
I added the if {[isop.. and the if {[isvoice... will this make the eggdrop not apply the ban on the user if he's oped/voiced ? (because some ppl flood using the same vhost as the op)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Try with continue, not return.
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

ok replaced {return 0} with {continue} , this should make it exempt ops and voices right ? :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

yes, I mean, this should do the *skip* in the foreach for the voices and whatever you've set there.
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

ok, thanx :)
Locked