mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Thanks to ViciousPotato for reporting that AltNicks were truncated to 9 characters. We assumed the server's maximum nick length to be 9 by default which made the code truncate the AltNick to 9 characters. Now we save the nick we sent last to the IRC server. If the server reports a "nick is already in use" with a nick shorter than we sent it, we assume this that the server truncated our nick to the allowed length and use this length for our retries (appending different characters to the default nick). Not all irc servers truncate the nick this way if it's too long, on those that don't this patch shouldn't cause any behavior change. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1620 726aef4b-f618-498e-8847-2d620e286838
30 KiB
30 KiB