On a side note, please remember not everyone will build an on the fly script for those who need help, some people would like to see an attempt at the script, to show an understanding amongst other things, hehe..
You could have even said "I know I'd need an an On Text event and add a trigger for the system. Luckily for you dreak is not one of those people who expects an attempt.

If you are very new to mIRC then I apologise, you wouldn't know what events mIRC have etc..
Whilst on the subject, if you do a
search you may find some impeccable Quote Systems, more fully advanced than the one dreak appended above, but his/her(s) seems to be what you needed.
All the best,
-Andy