Merge pull request #60 from Reisen/master

Make nick highlights case insensitive.
This commit is contained in:
John Reese 2013-12-17 09:12:09 -08:00
commit 90594e0764
1 changed files with 1 additions and 7 deletions

View File

@ -640,6 +640,7 @@ class CPushMod : public CModule
VCString values;
options["highlight"].Split(" ", values, false);
values.push_back("%nick%");
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;
}