From 559ab6d5b96b700b6e10bc321e2b93b6b45bf3b3 Mon Sep 17 00:00:00 2001 From: Reisen Date: Tue, 17 Dec 2013 16:37:54 +0000 Subject: [PATCH] Make nick highlights case insensitive. --- push.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/push.cpp b/push.cpp index d71e32e..582fb2e 100644 --- a/push.cpp +++ b/push.cpp @@ -640,6 +640,7 @@ class CPushMod : public CModule VCString values; options["highlight"].Split(" ", values, false); + values.push_back("%nick%"); for (VCString::iterator i = values.begin(); i != values.end(); i++) { @@ -675,13 +676,6 @@ class CPushMod : public CModule } } - CNick nick = user->GetNick(); - - if (message.find(nick.GetNick()) != std::string::npos) - { - return true; - } - return false; }