From d97ef37d2769c8c9349860795ccbdee5fbc1227b Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 13 Dec 2008 17:01:55 +0000 Subject: [PATCH] Bugfix: Only reply to a client's MODE request if we actually know the answer (Plus some indent fixup) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1290 726aef4b-f618-498e-8847-2d620e286838 --- Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client.cpp b/Client.cpp index 0247bcde..25bbf7b7 100644 --- a/Client.cpp +++ b/Client.cpp @@ -281,12 +281,12 @@ void CClient::ReadLine(const CString& sData) { if (m_pUser->IsChan(sTarget)) { CChan *pChan = m_pUser->FindChan(sTarget); - if (pChan && sModes.empty()) { + if (pChan && sModes.empty() && !pChan->GetModeString().empty()) { PutClient(":" + m_pUser->GetIRCServer() + " 324 " + GetNick() + " " + sTarget + " " + pChan->GetModeString()); if (pChan->GetCreationDate() > 0) { PutClient(":" + m_pUser->GetIRCServer() + " 329 " + GetNick() + " " + sTarget + " " + CString(pChan->GetCreationDate())); } - return; + return; } } } else if (sCommand.Equals("QUIT")) {