Did you try the code you posted? I'm guessing no because that wont work it needs to be done with a Raw as Dieter said..
And we've chose Raw 366 because that is End of /Names List, so we know we can now use $nick() to retrieve our nickname data.
And $2 represents the channel name.
So, $nick($2,0,v).
Your example wont work because
- You're missing on me:*:Join:#: {
- And also, as soon as you join your trying to echo data that hasn't even come through yet.
but what fiber suggested might be better..
It
is better his code works.

-Andy