on @*:

This makes YOUR code work in any channel you're oped in (as RusselB so kindly told you .. a slight modification to the code you already have).