summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/Controllers/HighlightRule.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Swift/Controllers/HighlightRule.cpp b/Swift/Controllers/HighlightRule.cpp
index 91bd3ab..622fbad 100644
--- a/Swift/Controllers/HighlightRule.cpp
+++ b/Swift/Controllers/HighlightRule.cpp
@@ -70,11 +70,12 @@ bool HighlightRule::isMatch(const std::string& body, const std::string& sender,
}
}
- if (!matchesKeyword && nickIsKeyword_ && !nick.empty()) {
- if (boost::regex_search(body, regexFromString(nick))) {
- matchesKeyword = true;
- }
- }
+ /* keyword highlighting has now moved to ChatMessageParser.cpp */
+ //if (!matchesKeyword && nickIsKeyword_ && !nick.empty()) {
+ //if (boost::regex_search(body, regexFromString(nick))) {
+ //matchesKeyword = true;
+ //}
+ //}
foreach (const boost::regex & rx, senderRegex_) {
if (boost::regex_search(sender, rx)) {