Newp, that'd work fine and is much shorter, didn't think of it that way. The above is something that I put together ages ago and I just keep it in remotes for times of need (it's something which is requested a bit).
Just to clear up any confusion you would still need the
on @*:join:#channel:{ whois $nick } bit
![smile smile](/images/graemlins/mirc/smile.gif)
Regards,