From 28b23955b4e169065e629658e8bfe4ecfd6d5931 Mon Sep 17 00:00:00 2001 From: silverleo Date: Fri, 13 Mar 2009 17:24:36 +0000 Subject: [PATCH] Added raw 432 processing for illegal and erroneous nicks and changed the condition to trigger SendAltNick() since ircds like to interpret the standards. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1425 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index 34aa5aa4..b2f0583c 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -179,11 +179,12 @@ void CIRCSock::ReadLine(const CString& sData) { // :irc.server.net 437 mynick badnick :Cannot change nickname while banned on channel if (m_pUser->IsChan(sRest.Token(0)) || sNick != "*") break; + case 432: // :irc.server.com 432 * nick :Erroneous Nickname: Illegal characters case 433: { CString sBadNick = sRest.Token(0); CString sConfNick = m_pUser->GetNick().Left(GetMaxNickLen()); - if (sNick == "*") { + if (!m_bAuthed) { SendAltNick(sBadNick); return; }