on *:JOIN:#YourChannel:{ .notice $nick Welcome to $chan $nick $+ ! [your message here] }
You can use $chan in the script itself, since it only triggers in the channel you provide at #YourChannel in the ON JOIN event.
Added a . before notice, this will silence the command. If you use it, you don't see that you noticed someone. Try it out.