if (%Relay == off) || !%Relay || make sure you have a var called relay and make it = on as otherwise it just returns, if it still dosent work lemme know and i will attempt to script it.

Just to clarify. if you are on #spamchannel and get a PM from a bot or whatever you want to ban all the clones on the channels you are op on? if not then please clarify also why join the channel?