mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Limit the length of the alt nick
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@435 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -169,7 +169,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
CString sConfNick = m_pUser->GetNick().Left(uMax);
|
||||
|
||||
if (sNick == "*" || sNick.CaseCmp(CNick::Concat(sConfNick, m_pUser->GetAwaySuffix(), GetMaxNickLen())) == 0) {
|
||||
CString sAltNick = m_pUser->GetAltNick();
|
||||
CString sAltNick = m_pUser->GetAltNick().Left(uMax);
|
||||
|
||||
if (sBadNick.CaseCmp(sConfNick) == 0) {
|
||||
if ((!sAltNick.empty()) && (sConfNick.CaseCmp(sAltNick) != 0)) {
|
||||
|
||||
Reference in New Issue
Block a user