*Simple* Timed Bans

By Shadow_Knight on Sep 09, 2004

This is a very Simple Timed Bans snippet. If you want to ban someone from a channel for a certain time limit, right click their nickname and Select 'Timed KickBans'. Next, you click on the time limit that you want the person to be banned for. Next, you will be prompted to enter a reason for kicking them. After you've kick-banned the person out of the channel, the timer will start. At the appropriate time, you will automatically unban the person you banned.

alias ban2 {
  mode $chan +b $address($1,2)
  /kick $chan $1 $2- *Two Minute Ban*
  /timer 1 120 /mode $chan -b $address($1,2)
}
alias ban5 {
  mode $chan +b $address($1,2)
  /kick $chan $1 $2- *Five Minute Ban*
  /timer 1 300 /mode $chan -b $address($1,2)
}
alias ban10 {
  mode $chan +b $address($1,2)
  /kick $chan $1 $2- *Ten Minute Ban*
  /timer 1 600 /mode $chan -b $address($1,2)
}
alias ban30 {
  mode $chan +b $address($1,2)
  /kick $chan $1 $2- *Thirty Minute Ban*
  /timer 1 1800 /mode $chan -b $address($1,2)
}
alias ban60 {
  mode # +b $address($1,2)
  /kick $chan $1 $2- *One Hour Ban*
  /timer 1 600 /mode $chan -b $address($1,2)
}

Menu Nicklist {
  Timed KickBans
  .2 Minutes:/ban2 $1 $$?="Reason:"
  .5 Minutes:/ban5 $1 $$?="Reason:"
  .10 Minutes:/ban10 $1 $$?="Reason:"
  .30 Minutes:/ban30 $1 $$?="Reason:"
  .60 Minutes:/ban60 $1 $$?="Reason:"
}

Comments

Sign in to comment.
Anti   -  Jul 06, 2007

Nice script dood keep on scripting :D!

 Respond  
xDaeMoN   -  Sep 09, 2004

Try this: alias tban { ban -u $+ $2 $1 | kick $chan $2 Minute(s) Ban | unset %tban.num } Menu Nicklist { Timed KickBans: set %tban.num $$?=\" How many minute(s) do you want to ban $$1 $+ ? \" | /tban $$1 $calc(%tban.num * 60) }

 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.