mirror of https://github.com/SeanOMik/znc-push.git
Fix context filtering to case insensitivity
This commit is contained in:
parent
cf08b9e0f4
commit
ed0263249a
4
push.cpp
4
push.cpp
|
@ -922,8 +922,10 @@ class CPushMod : public CModule
|
|||
* @param context The context of a message
|
||||
* @return True if context matches the filter
|
||||
*/
|
||||
bool context_filter(const CString& context)
|
||||
bool context_filter(const CString& raw_context)
|
||||
{
|
||||
CString context = raw_context.AsLower();
|
||||
|
||||
if (context == "all" || context == "*")
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue