mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Merge pull request #484 from KiNgMaR/singleton
Allow more control over CZNC singleton
This commit is contained in:
+3
-1
@@ -56,7 +56,7 @@ public:
|
||||
CString ExpandConfigPath(const CString& sConfigFile, bool bAllowMkDir = true);
|
||||
bool WriteNewConfig(const CString& sConfigFile);
|
||||
bool WriteConfig();
|
||||
bool ParseConfig(const CString& sConfig);
|
||||
bool ParseConfig(const CString& sConfig, CString& sError);
|
||||
bool RehashConfig(CString& sError);
|
||||
void BackupConfigOnce(const CString& sSuffix);
|
||||
static CString GetVersion();
|
||||
@@ -131,7 +131,9 @@ public:
|
||||
// !Getters
|
||||
|
||||
// Static allocator
|
||||
static void CreateInstance();
|
||||
static CZNC& Get();
|
||||
static void DestroyInstance();
|
||||
CUser* FindUser(const CString& sUsername);
|
||||
CModule* FindModule(const CString& sModName, const CString& sUsername);
|
||||
CModule* FindModule(const CString& sModName, CUser* pUser);
|
||||
|
||||
Reference in New Issue
Block a user