Ban Timer

By lehmann14l on Mar 17, 2007

It lets an op kick-ban someone for a certain amount of time.

usage:

!ban -nick- -time (in seconds)- -message-
!ban -nick- -if a time is not specified it will set the ban for 120 seconds.

if you are using a bot it might be easier to change ($nick isop $chan) to ($ulevel == number goes here)

any comments/suggestions are appreciated

on *:TEXT:!ban*:#:{
  if (($nick isop $chan) && ($3)) .ban -ku $+ $3 $chan $2 $4-
  if (($nick isop $chan) && (!$3)) .msg $chan if the ban time in seconds is not specified the default is 120 seconds
  if (($nick isop $chan) && (!$3)) .ban -ku120 $chan $2
  if (($nick isop $chan) && (!$2)) .msg $chan you need to specify a nick!  
  if ($nick !isop $chan) .msg $chan $nick $+ : You cant ban anyone! | hault
}

Comments

Sign in to comment.
WIRED   -  Aug 24, 2007

Removed.

 Respond  
guest598594   -  Jul 13, 2007

sorry, i clicked it three times cuz the page wouldnt load :P

 Respond  
guest598594   -  Jul 13, 2007

I like it a lot, it comes in handy. good job.

 Respond  
guest598594   -  Jul 13, 2007

I like it a lot, it comes in handy. good job.

 Respond  
Aaron   -  Mar 18, 2007

you can shorten the ban part by putting in:
\"ban -ku $+ $iif($3,$3,120) $chan $nick 2 $4-\"

 Respond  
lehmann14l   -  Mar 17, 2007

thanks for the tips :d, ill work on the script later lol

 Respond  
DarthReven   -  Mar 17, 2007

rather then repeating the ($nick isop $chan) statement over and over again state it once then run all the other commands under it

 Respond  
Lindrian   -  Mar 17, 2007

You dont need to use $null, u can use ($3) and (!$3)

 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.