Would it be a bad idea to remove the check altogether on /ban? It sort of makes sense to me to allow the server to give you the error message instead of mIRC.
Thats what I was thinking.
However this "feature" was added because of this (3rd post):
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=8&Number=226150