From 0dc7e321b7c7ad530489fcaec43ecefebcafe226 Mon Sep 17 00:00:00 2001 From: vitalyster Date: Sun, 7 Jul 2013 09:09:00 +0000 Subject: [PATCH] Swiften backend: use /Spectrum as resource for legacy network --- backends/swiften/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/swiften/main.cpp b/backends/swiften/main.cpp index 424ce975..bb39465a 100644 --- a/backends/swiften/main.cpp +++ b/backends/swiften/main.cpp @@ -292,7 +292,7 @@ class SwiftenPlugin : public NetworkPlugin, Swift::XMPPParserClient { void handleLoginRequest(const std::string &user, const std::string &legacyName, const std::string &password) { LOG4CXX_INFO(logger, user << ": connecting as " << legacyName); - boost::shared_ptr client = boost::make_shared(Swift::JID(legacyName), password, m_factories); + boost::shared_ptr client = boost::make_shared(Swift::JID(legacyName + "/Spectrum"), password, m_factories); m_users[user] = client; client->setAlwaysTrustCertificates(); client->onConnected.connect(boost::bind(&SwiftenPlugin::handleSwiftConnected, this, user));