Fix context filtering to case insensitivity

This commit is contained in:
John Reese 2017-01-09 11:56:23 -08:00
parent cf08b9e0f4
commit ed0263249a
1 changed files with 3 additions and 1 deletions

View File

@ -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;