From ed0263249a8c505da7093590f2731317ee19e052 Mon Sep 17 00:00:00 2001 From: John Reese Date: Mon, 9 Jan 2017 11:56:23 -0800 Subject: [PATCH] Fix context filtering to case insensitivity --- push.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/push.cpp b/push.cpp index 0acd91c..591292c 100755 --- a/push.cpp +++ b/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;