you could try
on 1:connect:{ if (!%botchan) { set %botchan $??="please enter the chan for the bot:?" } else { join %botchan } }
you dont need "/" in your scripts "!%botchan" is the same as checking if "%botchan == $null"