I needed to know if a specific user was voiced in any channel I was also in. Its for one of my adblocker script, so it doesn't block ads from voiced people as its doubtful that they are spammers. I tried an if like:
if ($calc($comchan($nick,0).voice + $comchan($nick,0).op + $comchan($nick,0).help)) return
After a very short period of time I realized this was not how comchan worked, regardless that it seemed so natively correct. $comchan($nick,0).voice is the same as $comchan($nick,0). My suggestion is to make the .voice .op .help suffixes work by providing the number of common channels where the user has that mode.