summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-02-17 16:53:24 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-02-17 16:53:24 (GMT)
commitde6cb039589e8dc06bf7a5ded562cbc8ce8fff8a (patch)
treed19bf2c5cbe675ffd6b7a62118cd39d48a597d77 /Swift/Controllers/Chat
parentca9652bededa2b2d65f0203f467ca801dc5199dc (diff)
downloadswift-de6cb039589e8dc06bf7a5ded562cbc8ce8fff8a.zip
swift-de6cb039589e8dc06bf7a5ded562cbc8ce8fff8a.tar.bz2
Add /me support it QtUI
Diffstat (limited to 'Swift/Controllers/Chat')
-rw-r--r--Swift/Controllers/Chat/ChatControllerBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Chat/ChatControllerBase.cpp b/Swift/Controllers/Chat/ChatControllerBase.cpp
index 6fe50d3..8a68ebd 100644
--- a/Swift/Controllers/Chat/ChatControllerBase.cpp
+++ b/Swift/Controllers/Chat/ChatControllerBase.cpp
@@ -91,9 +91,9 @@ void ChatControllerBase::activateChatWindow() {
void ChatControllerBase::addMessage(const String& message, const String& senderName, bool senderIsSelf, const boost::optional<SecurityLabel>& label, const String& avatarPath) {
if (message.beginsWith("/me ")) {
- chatWindow_->addMessage(message, senderName, senderIsSelf, label, avatarPath);
+ chatWindow_->addAction(message.getSplittedAtFirst(' ').second, senderName, senderIsSelf, label, avatarPath);
} else {
- chatWindow_->addAction(message, senderName, senderIsSelf, label, avatarPath);
+ chatWindow_->addMessage(message, senderName, senderIsSelf, label, avatarPath);
}
}