mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Implemented a nick compare function
As suggested by the todos in IRCSock, added IsNick(CString) method so the ugly Nick.GetNick().Equals(GetNick()) could be simplified. Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
This commit is contained in:
@@ -78,6 +78,10 @@ size_t CNick::GetCommonChans(vector<CChan*>& vRetChans, CIRCNetwork* pNetwork) c
|
||||
return vRetChans.size();
|
||||
}
|
||||
|
||||
bool CNick::IsNick(const CString& nickname) const {
|
||||
return m_sNick.Equals(nickname);
|
||||
}
|
||||
|
||||
void CNick::SetNetwork(CIRCNetwork* pNetwork) { m_pNetwork = pNetwork; }
|
||||
void CNick::SetNick(const CString& s) { m_sNick = s; }
|
||||
void CNick::SetIdent(const CString& s) { m_sIdent = s; }
|
||||
|
||||
Reference in New Issue
Block a user