mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #22 from gtmanfred/master
add support for expandstring
This commit is contained in:
commit
cffafa1256
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