Added ability to retain topics

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@113 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-05 18:48:57 +00:00
parent 66389db912
commit fa4dd02671
6 changed files with 75 additions and 1 deletions

View File

@@ -32,8 +32,14 @@ void CChan::JoinUser() {
}
m_pUser->PutUser(":" + m_pUser->GetIRCNick().GetNickMask() + " JOIN :" + GetName());
if (!GetTopic().empty()) {
m_pUser->PutUser(":" + m_pUser->GetIRCServer() + " 332 " + m_pUser->GetIRCNick().GetNick() + " " + GetName() + " :" + GetTopic());
m_pUser->PutUser(":" + m_pUser->GetIRCServer() + " 333 " + m_pUser->GetIRCNick().GetNick() + " " + GetName() + " " + GetTopicOwner() + " " + CUtils::ToString(GetTopicDate()));
}
m_pUser->PutIRC("NAMES " + GetName());
m_pUser->PutIRC("TOPIC " + GetName());
//m_pUser->PutIRC("TOPIC " + GetName());
m_bDetached = false;
}