Add CModule::ExpandString()

It chooses which ExpandString() to call, of user or of network.
This commit is contained in:
Alexey Sokolov
2012-11-23 21:40:30 +07:00
parent f941ee5870
commit 4036114975
3 changed files with 24 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ public:
return false;
if (!sChan.WildCmp(m_sChannelWildcard))
return false;
if (!sMessage.WildCmp(m_pModule->GetUser()->ExpandString(m_sSearchWildcard)))
if (!sMessage.WildCmp(m_pModule->ExpandString(m_sSearchWildcard)))
return false;
return true;
}
@@ -246,7 +246,8 @@ public:
VAttachIter it = m_vMatches.begin();
for (; it != m_vMatches.end(); ++it) {
if (it->GetHostMask() == attach.GetHostMask()
&& it->GetChans() == attach.GetChans())
&& it->GetChans() == attach.GetChans()
&& it->GetSearch() == attach.GetSearch())
return false;
}