unless you gag someone and then /deop?
or someone deop you... by the way, this on join event, will not work, in a specific channel, it will run in all them, so if you have op, in one channel, and then the person who you ''gag'' join in another channel, that you're not opped, it will return an error, unless you has op in all channels that this person join...