Rename variable in highlight()

Rename "push" to "negate_match" and reverse its values to better reflect its new purpose.
This commit is contained in:
Naine 2016-02-18 15:36:40 +11:00
parent aebf9460d9
commit 9361dd7a23
1 changed files with 5 additions and 5 deletions

View File

@ -878,14 +878,14 @@ class CPushMod : public CModule
{
CString value = i->AsLower();
char prefix = value[0];
bool push = true;
bool negate_match = false;
bool matched = false;
bool negated = false;
if (prefix == '-')
{
push = false;
negate_match = true;
value.LeftChomp(1);
}
else if (prefix == '_')
@ -907,13 +907,13 @@ class CPushMod : public CModule
if (msg.WildCmp(value))
{
if (push)
if (negate_match)
{
matched = true;
negated = true;
}
else
{
negated = true;
matched = true;
}
}
}