This is weird. Im using who $nick with raw 352 to check someones usertag ($9-) to say whether they are a script or a browser.

Raw 352, $2 == $chan
So lets say I /who $nick in $chan(3)

My problem is most nicknames return $chan(3) for $2, but some of these are returning $chan(1). So it appeared at first that if the nick was also in $chan(1) it returned $chan(1), but there are some nicks that are in $chan(1) and raw 352 returns the correct channel. ($chan(3)) Do I make sense? THIS DOESN'T!! :p

I use $2 to message the channel they are in.
on join:/who $nick
raw 352:if (its not webchat) msg $2 $6 is a script!

I know I can set a variable on join to save the channel name to work around it, but I want to know why this is doing this!

Any ideas?