Channel Join flood kicker

By ReQueST on May 26, 2004

It kicks when someone joins a channel 4 times without saying anything.
For experienced scripters, (They know what i mean!):
The variable in unset 1 minute after the last join.

on *:JOIN:#channelone: {
  if (% [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] == $null) {
    inc % [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] 1 
    .timer 1 60 unset % [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] 
  }
  elseif (% [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] == 3) { ban -u240 # $wildsite | /kick $ial($wildsite).nick JOIN-FLOOD! 4 minutes ban. | unset % [ $+ [ hop. [ $+ [ $wildsite ] ] ] ]  }
  else { inc % [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] 1 }
}

on *:TEXT:*:#channelone:{
  if (% [ $+ [ hop. [ $+ [ $wildsite ] ] ] ]) { unset % [ $+ [ hop. [ $+ [ $wildsite ] ] ] ] }
}

Comments

Sign in to comment.
drmrx   -  May 27, 2004

i understand the \'exprienced scripters\' tag, but why not twitch it for the simple users too?, just put a text explaining that you can replace #theone channel with any other channel someone wants.or a nice popup to set that up would be better.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.