you can do this :
[c] alias chan {
if ($1 == $null) { echo Specify the channel you want the Joiner Protector to work at! | halt }
if (%chan != $null) { /set %chan $addtok(%chan,,44) $+ , $+ $1 | %finish = $input(Channel $1 Added!,68) }
else { /set %chan $1 | %finish = $input(Channel $1 Added!,68) }
echo Joiner protector will work in $1 $+ !
}
[/c]