mirror of https://github.com/SeanOMik/znc-push.git
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:
parent
e2a3bb9ac3
commit
fa46469662
4
push.cpp
4
push.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue