All pastes #487755 Raw Edit

Something

public text v1 · immutable
·published 2007-05-14 17:00 UTC
rendered paste body
bind flud - * pub:flud
proc pub:flud {nick host hand type chan} {
  if {[botisop $chan]} {
    if {![isop $nick $chan] && ![isvoice $nick $chan] && ![matchattr $hand mnoaf|mnaof $chan]} {
      set host [maskhost $nick![getchanhost $nick $chan] ]
      putquick "kick $chan $nick :Some kick msg that says they've flooded"
      putquick "mode $chan +b $host"
      return 0
    }
    return 1
  }
}