If I have understand, you want that when @ or sop join this channel, the script mustn't work.
If yes, you can use a timer that past five seconds his join it see if user isreg ( condition ). If yes, you do work the script else you stop it
Excuse me for my bad English, I hope that I am been useful for you