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.

Flooder.tcl

Help for those learning Tcl or writing their own scripts.
Post Reply
b
bader1973
Voice
Posts: 3
Joined: Fri Apr 28, 2006 6:21 pm
Location: Eng

Flooder.tcl

Post by bader1973 »

hello
i need help to fix this commands, every time when flooder join my chann +MR repeating many time.
any fix it for me please :)

Code: Select all

 bind flud - ctcp bfldr
bind flud - join bfldr

proc bfldr {nick uhost hand type chan} {
  global banmask botnick
  if {$chan == "*"} {return 0}
  if {[matchattr $hand m] || [isop $nick $chan] || [matchattr $hand f]} {
    return 0
  }
   set banmask "*!*[string range $uhost [string first "@" $uhost] end]"
putquick "mode $chan +MRb $banmask"
putquick "kick $chan $nick :banned: Stop Flooding"
newchanban $chan $banmask $botnick "Stop Flooding" 5
utimer 15 "unmode1 $chan"
return 0
}

proc unmode1 {chan} {
putserv "MODE $chan -MR"
}


putlog "Flooder Scripts loaded!"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind flud - ctcp bfldr
bind flud - join bfldr

proc bfldr {nick uhost hand type chan} {
 global banmask botnick lockedc
 if {$chan == "*"} {return 0}
 if {[matchattr $hand m] || [isop $nick $chan] || [matchattr $hand f]} {
  return 0
 }
 if {![info exists lockedc([set c [string tolower $chan]])]} {
  set lockedc($c) 0
 }
 if {!$lockedc($c)} {
  set lockedc($c) 1
  set banmask "*!*[string range $uhost [string first "@" $uhost] end]"
  putquick "mode $chan +MRb $banmask"
  putquick "kick $chan $nick :banned: Stop Flooding"
  newchanban $chan $banmask $botnick "Stop Flooding" 5
  utimer 15 [list unmode1 $c]
 }
 return 0
}

proc unmode1 chan {
 global lockedc
 if {$lockedc($chan)} {
  set lockedc($chan) 0
  putserv "MODE $chan -MR"
 }
}


putlog "Flooder Scripts loaded!"
b
bader1973
Voice
Posts: 3
Joined: Fri Apr 28, 2006 6:21 pm
Location: Eng

Post by bader1973 »

thanks sir (k)
Post Reply