Unless you've created a program that runs mIRC scripting language, this looks like the bot would be an mIRC running this script. It's using commands available only to a nick which has been given OPER privileges, so if you're trying to run it without being made an OPER, then of course it's not going to work for someone who can't see the actual IP addresses hidden behind the IP shadowing.

And by "not work", does it mean it doesn't work at all, or just that it doesn't work the right way. It's going to be hard for someone to debug an OPER-level script without being an OPER, and since different networks can have slightly different commands and behaviors, it's possible for a script to work for an OPER at one network without working for an OPER at a different network.