although, I didnt include an error. but, that can just use an
else echo -a You arent on any channels. at the end, like you have.
also... when using the var command, its good practice to use
var = %var
there are some cases (I\'ve run into them, but cant remember the exact cases) where not using the = will produce unexpected results.