If you
really don't want to use a global var or the like you
could use a dummy group as switch, but that's
not what they're made for
#dummy off
#dummy end
on *:join:#:{
if ($group(#dummy) == on) { some event stuff here }
if (etc etc..) { <- rest of the event script }
}