mirror of
https://github.com/znc/znc.git
synced 2026-06-30 23:11:28 +02:00
Add CIRCNetwork::FindChans()
This commit is contained in:
@@ -649,6 +649,16 @@ CChan* CIRCNetwork::FindChan(CString sName) const {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
std::vector<CChan*> CIRCNetwork::FindChans(const CString& sWild) const {
|
||||
std::vector<CChan*> vChans;
|
||||
vChans.reserve(m_vChans.size());
|
||||
for (std::vector<CChan*>::const_iterator it = m_vChans.begin(); it != m_vChans.end(); ++it) {
|
||||
if ((*it)->GetName().WildCmp(sWild))
|
||||
vChans.push_back(*it);
|
||||
}
|
||||
return vChans;
|
||||
}
|
||||
|
||||
bool CIRCNetwork::AddChan(CChan* pChan) {
|
||||
if (!pChan) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user