Code: Select all
bind flud - * silence:flud
proc silence:flud {nick host hand type chan} {
if {![string equal -nocase "pub" "$type"]} {
putquick "SILENCE +*" -next
timer 3 [list putserv "SILENCE -*"]
return 0
}
}
TCL_no_TK wrote:I dont know if this will work for the notice flood, but everytime there is a flood (i.e msg flood) that is not on the channel (aka a text flood) the bot will send /silence +* and remove it after 3 mins, take from Dalnet Help DeskCode: Select all
bind flud - * silence:flud proc silence:flud {nick host hand type chan} { if {![string equal -nocase "pub" "$type"]} { putquick "SILENCE +*" -next timer 3 [list putserv "SILENCE -*"] return 0 } }
Code: Select all
putquick "SILENCE +*" -next
timer 3 [list putserv "SILENCE -*"]
Code: Select all
putquick "NICK $::altnick" -next
timer 3 [list putserv "NICK $::botnick"]
Code: Select all
global botnick altnick
Code: Select all
proc silence:flud {nick host hand type chan} {
Source: http://www.eggheads.org/support/egghtml ... html#bindaIf the proc returns 1, Eggdrop will not process the line any further (this could cause unexpected behavior in some cases).