From aae3defeecd5a000db33c973f9241d8b9db12c0c Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 14 Feb 2012 09:26:13 +0000
Subject: Fix rendering of mediated invites


diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index ed8e632..4cf606c 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -805,7 +805,10 @@ void QtChatWindow::addMUCInvitation(const JID& jid, const std::string& reason, c
 		reasonString = QString("\"%1\"").arg(P2QSTRING(reason));
 	}
 	if (!direct) {
-		reasonString += QString("(%1 may not have really sent this invitation)").arg(P2QSTRING(jid.toString()));
+		if (!reasonString.isEmpty()) {
+			reasonString += " ";
+		}
+		reasonString += QString(" (%1 may not have really sent this invitation)").arg(contact_);
 	}
 	msgBox.setInformativeText(QString("Accept invitation from %1 to enter %2?\n%3").arg(contact_).arg(P2QSTRING(jid.toString())).arg(reasonString));
 	msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
-- 
cgit v0.10.2-6-g49f6