Would something like this help?
Use !tban nickname time reason
Must be opped in the room to use the command, Place in remotes (this is to work in a bot mIRC not your own) let me know if you are adding it to your own mIRC client and I will make it work for you
on *:TEXT:*:#: {
if ($strip($1) == !tban) {
if ($nick !isop $chan) { .notice $nick Sorry but you must be opped to use this command! | halt }
if ($2 == $null) && ($3 == $null) && ($4- == $null) { .notice $nick [USAGE] - !tban NICK TIME REASON -- Example -- !tban azaza 50 Spam | halt }
if ($2 == $me) { .notice $nick [NOTE] - I will not ban myself! | halt }
if ($2 == $nick) { .notice $nick [NOTE] - Are you really trying to ban yourself? | halt }
if ($2 !ison $chan) { .notice $nick [NOTE] Sorry but $2 is not in $chan | halt }
else {
.msg $chan 5[BAN] 7-3 $nick 4has banned7 $2 4for:5 $4-! ( TIME: $3 )
.ban -ku $+ $3 $chan $2
}
}
}
Edited: The version you posted only set +b (ban) I have made my version to +b (ban) and then kick the user from the room.