you can use "echo -t" that will echo the line prefixed with $timestamp, so you dont need to add $timestamp manually.
also you may want to look at $nick().pnick instead of repeatedly checking if $nick isop, ishop, isvoice etc. (remember you have $left() and $right() :P )
You also have a random privmsg command on line 110, but other than that looking good :)