mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Moved static allocator into cpp file
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@606 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -1172,3 +1172,9 @@ bool CZNC::AddUser(CUser* pUser) {
|
||||
DEBUG_ONLY(cout << "Invalid user [" << pUser->GetUserName() << "] - [" << sErr << "]" << endl);
|
||||
return false;
|
||||
}
|
||||
|
||||
CZNC& CZNC::Get() {
|
||||
static CZNC* pZNC = new CZNC;
|
||||
return *pZNC;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user