mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02:00
Made some functions const
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@431 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -437,8 +437,8 @@ void CModule::ListSockets() {
|
||||
}
|
||||
}
|
||||
|
||||
const CString& CModule::GetModName() { return m_sModName; }
|
||||
CString CModule::GetModNick() { return ((m_pUser) ? m_pUser->GetStatusPrefix() : "*") + m_sModName; }
|
||||
const CString& CModule::GetModName() const { return m_sModName; }
|
||||
CString CModule::GetModNick() const { return ((m_pUser) ? m_pUser->GetStatusPrefix() : "*") + m_sModName; }
|
||||
|
||||
bool CModule::OnLoad(const CString& sArgs) { return true; }
|
||||
bool CModule::OnBoot() { return true; }
|
||||
@@ -679,7 +679,7 @@ bool CGlobalModules::OnConfigLine(const CString& sName, const CString& sValue, C
|
||||
GLOBALMODHALTCHK(OnConfigLine(sName, sValue, pUser, pChan));
|
||||
}
|
||||
|
||||
CModule* CModules::FindModule(const CString& sModule) {
|
||||
CModule* CModules::FindModule(const CString& sModule) const {
|
||||
for (unsigned int a = 0; a < size(); a++) {
|
||||
if (sModule.CaseCmp((*this)[a]->GetModName()) == 0) {
|
||||
return (*this)[a];
|
||||
|
||||
@@ -235,8 +235,8 @@ public:
|
||||
virtual bool PutModule(const CString& sLine, const CString& sIdent = "znc", const CString& sHost = "znc.com");
|
||||
virtual bool PutModNotice(const CString& sLine, const CString& sIdent = "znc", const CString& sHost = "znc.com");
|
||||
|
||||
const CString& GetModName();
|
||||
CString GetModNick();
|
||||
const CString& GetModName() const;
|
||||
CString GetModNick() const;
|
||||
|
||||
// Timer stuff
|
||||
bool AddTimer(CTimer* pTimer);
|
||||
@@ -344,7 +344,7 @@ public:
|
||||
virtual bool OnPrivNotice(const CNick& Nick, CString& sMessage);
|
||||
virtual bool OnChanNotice(const CNick& Nick, CChan& Channel, CString& sMessage);
|
||||
|
||||
CModule* FindModule(const CString& sModule);
|
||||
CModule* FindModule(const CString& sModule) const;
|
||||
bool LoadModule(const CString& sModule, const CString& sArgs, CUser* pUser, CString& sRetMsg);
|
||||
bool UnloadModule(const CString& sModule);
|
||||
bool UnloadModule(const CString& sModule, CString& sRetMsg);
|
||||
|
||||
Reference in New Issue
Block a user