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:
prozacx
2005-07-11 05:20:01 +00:00
parent 9188742ca2
commit f6f438a543
2 changed files with 6 additions and 6 deletions

View File

@@ -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];