Skip to content

Commit

Permalink
add using ExpandString
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gtmanfred committed Dec 22, 2012
1 parent e2a3bb9 commit fa46469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions push.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class CPushMod : public CModule

value = "*" + value + "*";

if (msg.WildCmp(value))
if (msg.WildCmp(this->ExpandString(value).MakeLower()))
{
return push;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fa46469

Please sign in to comment.