Those lines show that mIRC is sending the quit message just as it should, but the server is ignoring it. I'd say a server setting/bug is causing this, the reason could be different depending on the server, too. E.g. on one server you could have to stay connected for more than x seconds to use a quit message, on another you could be in a channel with a funny mode set.