on *:join:#chan: /msg $nick message
just replace chan, with the name of your channel and message with whatever you want it to say.
although that will open it in another window, if you want it to tell the person who joins a message, but in the main screen to were only they can see it, change /msg, to /notice