using $left(%x,1) will fail, if the nick is in 16 channels, it will only return 1.. the right way to do it, is using $gettok
try this, put another nick in 10 other channels
then type !count nick
Nick is in 1 of the same channel(s) I am in, and nick is on: #chan1, #chan2, #chan3,#chan4,#chan5,#chan6,#chan7,#chan8,#chan9,#chan10
your method will only return 1, instead 10
you need to learn how to read, since im repeating the same thing 4 times