This is a fix of my first script:
Code:
alias tban {
if (!$3) { echo -a params missing! ex: /tban nick seconds reason | halt }
if (($2 >= 0) && ($2 < 60)) var %time2 $2 seconds
if ($2 >= 60) var %time2 $calc( $2 / 60 ) minute(s)
if ($1 !isop $chan) { ban -ku $+ $2 $chan $1 2 $3- $(|) Banned for %time2 }
}
It's an alias now. You'll have to use it this way: /tban nick seconds reason
This script will ban a user for a certain amount of seconds.
Thanks to wild and Holz for helping me with this script ><
ToDo:
Shouldn't be that hard