Looks good so far.
Next step is to convert it from pseudocode (which is what the kind of code you've been doing) to mIRC code.

You'll want to ensure that the help file is available, as it will be your best reference when changing it to a code that mIRC will understand.

Good luck, and if you run into something you can't figure out, don't hesitate to ask.