Ahh, well that would solve my problems however it doesn't trick $chan(0) into giving the amount of channels on the switchbar. If on the channel or banned from it and the channel is open somewhere it still shows the same $chan(0)