update from znc-push git
This commit is contained in:
parent
187b45a9ed
commit
68642ed151
14
push.cpp
14
push.cpp
@ -975,9 +975,6 @@ class CPushMod : public CModule
|
|||||||
options["highlight"].Split(" ", values, false);
|
options["highlight"].Split(" ", values, false);
|
||||||
values.push_back("%nick%");
|
values.push_back("%nick%");
|
||||||
|
|
||||||
bool matched = false;
|
|
||||||
bool negated = false;
|
|
||||||
|
|
||||||
for (VCString::iterator i = values.begin(); i != values.end(); i++)
|
for (VCString::iterator i = values.begin(); i != values.end(); i++)
|
||||||
{
|
{
|
||||||
CString value = i->AsLower();
|
CString value = i->AsLower();
|
||||||
@ -1008,18 +1005,11 @@ class CPushMod : public CModule
|
|||||||
|
|
||||||
if (msg.WildCmp(value))
|
if (msg.WildCmp(value))
|
||||||
{
|
{
|
||||||
if (negate_match)
|
return !negate_match;
|
||||||
{
|
|
||||||
negated = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
matched = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (matched && !negated);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user