alias -l getwid {
set -eu1 %getwid $wid
return $1-
}
on ^*:CHAT:$($getwid(*)):{
var %w = %getwid
unset %getwid
if (!$halted) {
if ($gettok($rawmsg,1,32) == $+($chr(1),ACTION)) var %a = $true, %s = $left($gettok($rawmsg,2-,32),-1)
else var %s = $1-
if ($cnick($nick) != 0) && ($cnick($nick).method < 2) var %n = $+($chr(3),$base($cnick($nick).color,10,10,2),$nick,$chr(15))
else var %n = $nick
echo -ibcflmrt $iif(%a,action,normal) $+(@,%w) $iif(%a,%n,$+(<,%n,>)) %s
haltdef
}
}