As far as I know there is no command to set a quit message. Though you can enter a variable name into the edit box in mIRC options, then change the quit message to what you want, just using something like /set %quitmsg <new message here>, its also possable to have a quit alias, but there are many times when this will not work.

alias quit { quit messge here }

Hope that helps