mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
8
Chan.cpp
8
Chan.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user