Swiften backend: use /Spectrum as resource for legacy network

This commit is contained in:
vitalyster 2013-07-07 09:09:00 +00:00
parent 653d3efc5e
commit 0dc7e321b7

View file

@ -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<Swift::Client> client = boost::make_shared<Swift::Client>(Swift::JID(legacyName), password, m_factories);
boost::shared_ptr<Swift::Client> client = boost::make_shared<Swift::Client>(Swift::JID(legacyName + "/Spectrum"), password, m_factories);
m_users[user] = client;
client->setAlwaysTrustCertificates();
client->onConnected.connect(boost::bind(&SwiftenPlugin::handleSwiftConnected, this, user));