;;;inside theme i use $chkc2, but sometimes it works other times do not, anybody know what the problem is?
;;; the variable %nop2 is set with "$nick($chan,$nick).pnick"

alias checknick2 {
if ($left(%nop2,1) == $chr(126)) return  $+ %nlow $+ $chr(126) $+ 14 $+ $nick
elseif ($left(%nop2,1) == $chr(38)) return  $+ %nlad $+ $chr(38) $+ 14 $+ $nick
elseif ($left(%nop2,1) == $chr(64)) return  $+ %nlop $+ $chr(64) $+ 14 $+ $nick
elseif ($left(%nop2,1) == $chr(37)) return  $+ %nlha $+ $chr(37) $+ 14 $+ $nick
elseif ($left(%nop2,1) == $chr(43)) return  $+ %nlvo $+ $chr(43) $+ 14 $+ $nick
else { return $nick }
}

alias chkc2 {
set -l %cni $checknick2
if ($active ischan) {
return %cni
}
else {
return $nick
}
}

Last edited by Doctor_Souza; 11/12/17 12:39 AM.