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
This commit is contained in:
psychon
2008-06-08 09:43:21 +00:00
parent 80a947100a
commit 91eefcf87b

View File

@@ -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