Press the key combination "
ALT+R" to open the script editor, select from the menu "
File/New", then copy the code below and press "
OK":
on *:JOIN:#: msg $chan $nick welcome you to our channel.
In this code, the identifier "
$nick" is the nickname of the user who joined to the channel.