mirror of
https://github.com/znc/znc.git
synced 2026-07-02 16:02:02 +02:00
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:
+5
-1
@@ -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) == ":") {
|
||||
|
||||
Reference in New Issue
Block a user