mirror of
https://github.com/znc/znc.git
synced 2026-08-04 16:03:25 +02:00
Fix regression of 1.6.0
Cloning a user caused a non-immediate segfault. This was fixed already in 1.7 branch (by refactoring). Fix #1340
This commit is contained in:
@@ -157,6 +157,12 @@ CIRCNetwork::CIRCNetwork(CUser *pUser, const CIRCNetwork &Network) {
|
||||
m_MotdBuffer.SetLineCount(200, true); // This should be more than enough motd lines
|
||||
m_NoticeBuffer.SetLineCount(250, true);
|
||||
|
||||
m_pPingTimer = new CIRCNetworkPingTimer(this);
|
||||
CZNC::Get().GetManager().AddCron(m_pPingTimer);
|
||||
|
||||
m_pJoinTimer = new CIRCNetworkJoinTimer(this);
|
||||
CZNC::Get().GetManager().AddCron(m_pJoinTimer);
|
||||
|
||||
Clone(Network);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user