on @*:text:*:#channel: {
if ($nick isop #) { halt }
inc -u[color:blue]N[/color] $+(%talk,$nick)
if ($eval($+(%talk,$nick),2) >= [color:red]N[/color]) { mode $chan -v $nick | unset $+(%talk,$nick) }
}
This should work as you want to. The
first N is the time limit. This will determine the amount of time that the person is allowed to say
N lines. The
second N is the amount of lines the person can say in
N seconds. Kinda redundant putting the last sentence, but I feel like typing

The code, in this case, devoices the person. To voice them as the join, use this:
on @!*:join:#channel: mode # +v $nickYou can use the same code for the ON Action event.. works exactly the same (just gotta change the event, of course).
Hope this helps

Zyzzyx.
Edit: Mentality beat me to it :P Also forgot the @Op checking