From 80a947100a738bce408f3cb91b64a7c7cc21d3d0 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 8 Jun 2008 09:34:21 +0000 Subject: [PATCH] crypt: Fix bug where a usermsg was not forwarded to other clients Thanks to SilverLeo for this patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1088 726aef4b-f618-498e-8847-2d620e286838 --- modules/crypt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/crypt.cpp b/modules/crypt.cpp index a1c22c77..d4d10775 100644 --- a/modules/crypt.cpp +++ b/modules/crypt.cpp @@ -44,8 +44,9 @@ public: if (it != EndNV()) { CChan* pChan = m_pUser->FindChan(sTarget); - if ((pChan) && (pChan->KeepBuffer())) { - pChan->AddBuffer(":\244" + m_pUser->GetIRCNick().GetNickMask() + " PRIVMSG " + sTarget + " :" + sMessage); + if (pChan) { + if (pChan->KeepBuffer()) + pChan->AddBuffer(":\244" + m_pUser->GetIRCNick().GetNickMask() + " PRIVMSG " + sTarget + " :" + sMessage); m_pUser->PutUser(":\244" + m_pUser->GetIRCNick().GetNickMask() + " PRIVMSG " + sTarget + " :" + sMessage, NULL, m_pClient); }