Fix sf bug #1915864 (patch from x-x)

If you do /names #chan when you are not in #chan, you never got
the reply.

Thanks to Xaquseg for reporting.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@990 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-03-22 18:39:11 +00:00
parent 9c88a6aedf
commit 54867320dc
+5 -1
View File
@@ -329,8 +329,12 @@ void CIRCSock::ReadLine(const CString& sData) {
sRest.Trim();
// Todo: allow for non @+= server msgs
CChan* pChan = m_pUser->FindChan(sRest.Token(1));
if (!pChan) // Todo: should this still be forwarded to clients?
if (!pChan) {
// If we don't know that channel, a client might have
// sent a /names on it's own -> forward it.
m_pUser->PutUser(sLine);
return;
}
CString sNicks = sRest.Token(2, true);
if (sNicks.Left(1) == ":") {