mirror of https://github.com/SeanOMik/znc-push.git
Make nick highlights case insensitive.
This commit is contained in:
parent
0c6de121df
commit
559ab6d5b9
8
push.cpp
8
push.cpp
|
@ -640,6 +640,7 @@ class CPushMod : public CModule
|
||||||
|
|
||||||
VCString values;
|
VCString values;
|
||||||
options["highlight"].Split(" ", values, false);
|
options["highlight"].Split(" ", values, false);
|
||||||
|
values.push_back("%nick%");
|
||||||
|
|
||||||
for (VCString::iterator i = values.begin(); i != values.end(); i++)
|
for (VCString::iterator i = values.begin(); i != values.end(); i++)
|
||||||
{
|
{
|
||||||
|
@ -675,13 +676,6 @@ class CPushMod : public CModule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CNick nick = user->GetNick();
|
|
||||||
|
|
||||||
if (message.find(nick.GetNick()) != std::string::npos)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue