Now, that I think about it, I have made many IRC oper scripts and I can remember if this is one I modified or made. I actually just posted it her for a friend
This is my own snippet that I made
Paste in remotes and that is it