add using ExpandString

this allows you to add to your highlights something like %nick% so if
you are /nicked to something else you can still get highlights
or any other ExpandStrings
This commit is contained in:
Daniel Wallace 2012-12-22 02:18:26 -05:00
parent e2a3bb9ac3
commit fa46469662
1 changed files with 2 additions and 2 deletions

View File

@ -540,7 +540,7 @@ class CPushMod : public CModule
value = "*" + value + "*";
if (msg.WildCmp(value))
if (msg.WildCmp(this->ExpandString(value).MakeLower()))
{
return push;
}
@ -614,7 +614,7 @@ class CPushMod : public CModule
for (VCString::iterator i = blacklist.begin(); i != blacklist.end(); i++)
{
if (name.WildCmp(i->AsLower()))
if (name.WildCmp(this->ExpandString(i->AsLower()).MakeLower()))
{
return false;
}