From 91eefcf87bf4be2b10cb54a875e4d01b30c83eb1 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 8 Jun 2008 09:43:21 +0000 Subject: [PATCH] Fix a bug introduced by SilverLeo :P If a topic was unset, this wasn't forwarded to the client the way it should be. Thanks to SilverLeo for the patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1089 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index 29f8181a..7dee6d99 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -664,10 +664,7 @@ void CIRCSock::ReadLine(const CString& sData) { return; // Don't forward this } - if (!sTopic.empty()) - sTopic = ":" + sTopic; - - sLine = ":" + Nick.GetNickMask() + " TOPIC " + pChan->GetName() + " " + sTopic; + sLine = ":" + Nick.GetNickMask() + " TOPIC " + pChan->GetName() + " :" + sTopic; } } else if (sCmd.CaseCmp("PRIVMSG") == 0) { // :nick!ident@host.com PRIVMSG #chan :Message