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.

Flood Pub

Help for those learning Tcl or writing their own scripts.
Post Reply
B
BadAssWright
Voice
Posts: 8
Joined: Sun Aug 14, 2005 6:20 pm

Flood Pub

Post by BadAssWright »

okay i made a flood script, but when the user is an op i put return on but for some reason it still kicks them how would i make it stop?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Show us your code.
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

Code: Select all


bind pubm -|- * protect:channel
proc protect:channel {nick uhost handle channel text} {
  if {(![botisop $channel]) || ([isop $nick $channel])} {return 0}
  if {([matchattr $handle o]) || ([matchattr $handle f])} {return 0}

I once was an intelligent young man, now i am old and i can not remember who i was.
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Try:

Code: Select all

bind pubm -|- * protect:channel
proc protect:channel {nick uhost handle channel text} {
  if {![botisop $channel]} { return }
  if {[mattchattr $handle of] || [isop $nick $channel]} { return }
  # code here
}
r0t3n @ #r0t3n @ Quakenet
Post Reply