mirror of
https://github.com/znc/znc.git
synced 2026-08-10 02:43:05 +02:00
Added Set/GetArgs() for telling the args a mod was loaded with
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@437 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -270,10 +270,12 @@ public:
|
||||
|
||||
// Setters
|
||||
void SetDescription(const CString& s) { m_sDescription = s; }
|
||||
void SetArgs(const CString& s) { m_sArgs = s; }
|
||||
// !Setters
|
||||
|
||||
// Getters
|
||||
const CString& GetDescription() const { return m_sDescription; }
|
||||
const CString& GetArgs() const { return m_sArgs; }
|
||||
CZNC* GetZNC() { return m_pZNC; }
|
||||
CUser* GetUser() { return m_pUser; }
|
||||
TSocketManager<Csock>* GetManager() { return m_pManager; }
|
||||
@@ -289,6 +291,7 @@ protected:
|
||||
CZNC* m_pZNC;
|
||||
CString m_sModName;
|
||||
CString m_sSavePath;
|
||||
CString m_sArgs;
|
||||
private:
|
||||
MCString m_mssRegistry; //!< way to save name/value pairs. Note there is no encryption involved in this
|
||||
};
|
||||
@@ -302,7 +305,6 @@ public:
|
||||
|
||||
void UnloadAll();
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs); // Return false to abort
|
||||
virtual bool OnBoot(); // Return false to abort
|
||||
virtual void OnUserAttached();
|
||||
virtual void OnUserDetached();
|
||||
|
||||
Reference in New Issue
Block a user