Swiften backend: use /Spectrum as resource for legacy network
This commit is contained in:
parent
653d3efc5e
commit
0dc7e321b7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue