That doesn't work.

Example:

I have 1 entry in the colors list, which marks all ops in red color.
$cnick(<opnick here>) will return 0, but infact it would have to be displayed in red.