Ok I just talked with Unrealircd developer and he applied a fix for version 5 , so I tested and mirc behaves correctly now, everything seems nice and clear now.

Commit: https://github.com/unrealircd/unrealircd/commit/d55eb642e5bbc40e94663b7510ac95b993c78356