on ^*:text:*:#:{ echo $chan $+(¬,$timestamp) $+(| $lev |) $1- | haltdef }
;; spacing aliases
alias lev {
var %a = $nick($chan,0), %\s = $str($chr(160),80), %len, %len2
while (%a) { %len2 = $len($nick($chan,%a)) | if (%len2 > %len || !%len) { %len = %len2 } | dec %a }
if ($nick isop $chan) var %temp = $+(%temp,,%CopColor,@)
elseif ($nick isaop $chan) var %temp = $+(%temp,,%CaopColor,&)
elseif ($nick ishop $chan) var %temp = $+(%temp,,%ChopColor,%)
elseif ($nick isvoice $chan) var %temp = $+(%temp,,%CvoiceColor,+)
else var %temp = $+(%temp,$chr(160))
return $iif($nick,$+(%temp,$left($+($nick,%\s),%len)),%len)
}