It's PHP, not mIRC script. I didn't look at it too much because PHP makes my eyes bleed, but it's a very basic IRC bot that could be used to execute a denial of service attack by "packeting" a given address. It's rudimentary at best though, and it's always possible that it has legitimate uses.