Your on join event doesn't make sense. How are you supposed to /who $nick when a user joins? It's supposed to be /whois $nick. It should have been:> on *:join:#:{ $iif($nick == $me,who $chan,whois $nick) }Then you're still missing raw 311 in conjunction with the /whois command.
I believe what you wanted was this instead:
on me:*:join:#:{ who $chan }