regarding the spaces issue, there does exist a method to echo the exact line as messaged by the user (with excess spaces intact) by using
/loadbuf, an example of which is given here:
http://pastebin.com/hczBVrFsthe preferred method involves using a DLL such as Saturn's spaces.dll available along with a full double article on the nature of handling spaces in mIRC at:
http://www.xise.nl/mirc/wiki/doku.php?id=spaces