Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove pModule from Ismatch

  • Loading branch information...
commit f941ee5870a7c41b6b59460b2c2e643fa2fbc2b4 1 parent 77e4ae5
@gtmanfred gtmanfred authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 modules/autoattach.cpp
View
7 modules/autoattach.cpp
@@ -30,7 +30,7 @@ class CAttachMatch {
m_sHostmaskWildcard = "*!*@*";
}
- bool IsMatch(const CString& sChan, const CString& sHost, const CString& sMessage, const CModule *pModule) const {
+ bool IsMatch(const CString& sChan, const CString& sHost, const CString& sMessage) const {
if (!sHost.WildCmp(m_sHostmaskWildcard))
return false;
if (!sChan.WildCmp(m_sChannelWildcard))
@@ -190,7 +190,6 @@ class CChanAttach : public CModule {
const CString& sChan = Channel.GetName();
const CString& sHost = Nick.GetHostMask();
const CString& sMessage = Message;
- const CModule* pModule = this;
VAttachIter it;
if (!Channel.IsDetached())
@@ -198,13 +197,13 @@ class CChanAttach : public CModule {
// Any negated match?
for (it = m_vMatches.begin(); it != m_vMatches.end(); ++it) {
- if (it->IsNegated() && it->IsMatch(sChan, sHost, sMessage, pModule))
+ if (it->IsNegated() && it->IsMatch(sChan, sHost, sMessage))
return;
}
// Now check for a positive match
for (it = m_vMatches.begin(); it != m_vMatches.end(); ++it) {
- if (!it->IsNegated() && it->IsMatch(sChan, sHost, sMessage, pModule)) {
+ if (!it->IsNegated() && it->IsMatch(sChan, sHost, sMessage)) {
Channel.JoinUser();
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.