-u is in seconds. if you want to make it last for an hour, you need to make it -u3600
*edit*
I just also re-read the script.
The simply fact is that an on BAN even only triggers on a ban. It doesn't know how long it lasts for, because all it is receiving, is that a client was banned at a particular address.
If you want the ban to only last for an hour, either script a method that allows your ops to create a ban that lasts for that long, or tell them to set -u for an hour, which is what i have shown in this thread.
on *:TEXT:!ban*:#:{
if ($nick isop $chan) {
if (($2 ison $chan) && ($3 != $null)) {
ban -u3600 $chan $2 2
kick $chan $2 $3-
halt
}
}
}
The above code is a very simple way to automate banning for ops that can't be stuffed banning with /ban
It will ban the nick if it exists on the channel, and as long as there is a reason for the ban ($3-)
use is this:
!ban nickname reason you have banned the nickit will then proceed to ban the nick for 1hour using the *!*@address.com mask
the if ($nick isop $chan) makes it so only an nick with @ in front of their name can use the command.