Yeah, I know. Ignore and ban can both be done with -u. I just let his alias basically alone. As for the alias, if it's only used from the menu, you don't have to check $chan or $2. Also, if you're using -u on invite, you need to add 2 to it as he had in the original. $calc($1 + 2).

And, -ku isn't really what he was wanting for /ban. That ends up kicking then banning someone, which means they can sometimes get back in before the ban takes effect (what he asked for originally to avoid). That's why I left them separate for him.

Oh, and $1 is the time, not $2. Here's an edit just in case the OP wants to use -u.
Code:
kb { 
  ; $1 = Time, $2 = Channel, $3 = Nick, $4- = Reason
  ban -u $+ $1 $2 $3
  kick $2 $3 $4-
  ignore -u $+ $calc($1 + 2) $3
  if ($1 > 0) {
    .timerkb 1 $1 mode $2 -b $3
  }
}


I left the > 0 in there just in case someone goes and puts something they shouldn't into the time dialog and causes issues. As long as the person using the script pays attention while typing the time, that check isn't needed, of course.

Last edited by Riamus2; 08/04/10 09:13 PM.