summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-01-23 15:04:26 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-01-23 15:04:26 (GMT)
commit82ca99c1a902dee62f591ddcbde0ecac7ef2c8a5 (patch)
tree780bb46429a90e31c2f752ed569a0cc69ddaabae /Swift/Controllers/Chat/ChatMessageParser.h
parenta7f73b3a741e558e65d5d9302f33fdedf12f05da (diff)
downloadswift-sandbox/rm/highlighteditor.zip
swift-sandbox/rm/highlighteditor.tar.bz2
Fix to MUC/Chat flag in Hightlight Rules.sandbox/rm/highlighteditor
Change-Id: I81589a4d032f26af6519c5505f04c4bf2c0d86c9
Diffstat (limited to 'Swift/Controllers/Chat/ChatMessageParser.h')
-rw-r--r--Swift/Controllers/Chat/ChatMessageParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/ChatMessageParser.h b/Swift/Controllers/Chat/ChatMessageParser.h
index 1acb9c3..ed958b2 100644
--- a/Swift/Controllers/Chat/ChatMessageParser.h
+++ b/Swift/Controllers/Chat/ChatMessageParser.h
@@ -14,12 +14,13 @@ namespace Swift {
class ChatMessageParser {
public:
- ChatMessageParser(const std::map<std::string, std::string>& emoticons, HighlightRulesListPtr highlightRules);
+ ChatMessageParser(const std::map<std::string, std::string>& emoticons, HighlightRulesListPtr highlightRules, bool mucMode = false);
ChatWindow::ChatMessage parseMessageBody(const std::string& body, bool senderIsSelf = false);
private:
ChatWindow::ChatMessage emoticonHighlight(const ChatWindow::ChatMessage& parsedMessage);
ChatWindow::ChatMessage splitHighlight(const ChatWindow::ChatMessage& parsedMessage);
std::map<std::string, std::string> emoticons_;
HighlightRulesListPtr highlightRules_;
+ bool mucMode_;
};
}