something u might like to add once you have it working with $1 is this tho the first line of the alias JOINON
alias joinon {
tokenize 32 $1 $chan
This well allow it to work using $1 and if no $1 was passed (ie you typed in /joinon) it well use the current channel if your in one.