[Query-API] second connect with maximum name and error 1541

I’ve search for some time, so I know the issue itself is nothing new. But I couldn’t find a fix for this.

  • You can only change your query-client nickname if you are already connected.
  • You get the previous name on connect. (use)
  • If that name is in use, you get the same name + a number.
  • but if the previous name has the maximum size, you just get 1541,"invalid parameter size"

So in that case I can’t connect anymore at all, because I can’t “fix” my nickname until I’m already connected…
Or am I missing something ?!