you may want to add a minor thing to this. I added it in bold.
Note: when u c %%%, replace it with your #channel
if ($nick != $me) msg $chan Welcome $nick to $chan + !
that way you wont be welcoming yourself to the channel eveytime you join.