From b07fa48455c9187538d371ea87fbed9cf44f8089 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 2 Oct 2010 18:51:05 +0100
Subject: Linkify status messages in chat dialog.

Release-Notes: System and Presence messages in chat windows are now linkified (as well as chat messages, which were previously).

Resolves: #584

diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index a927988..a644b86 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -316,6 +316,7 @@ void QtChatWindow::addSystemMessage(const String& message) {
 	}
 
 	QString messageHTML(Qt::escape(P2QSTRING(message)));
+	messageHTML = P2QSTRING(Linkify::linkify(Q2PSTRING(messageHTML)));
 	messageHTML.replace("\n","<br/>");
 	messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(messageHTML, QDateTime::currentDateTime(), false, theme_)));
 
@@ -330,6 +331,7 @@ void QtChatWindow::addPresenceMessage(const String& message) {
 	}
 
 	QString messageHTML(Qt::escape(P2QSTRING(message)));
+	messageHTML = P2QSTRING(Linkify::linkify(Q2PSTRING(messageHTML)));
 	messageHTML.replace("\n","<br/>");
 	messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new SystemMessageSnippet(messageHTML, QDateTime::currentDateTime(), false, theme_)));
 
-- 
cgit v0.10.2-6-g49f6