#124 Use SASL credentials from config to Core client.

master
Tomatix 3 years ago
parent 4c27c89967
commit 3fae7faed0
  1. 2
      IdealIRC/IRC.cpp
  2. 2
      IdealIRC/IdealIRC.cpp

@ -147,7 +147,7 @@ void IRC::onConnected()
{
const auto& conf = ConfigMgr::instance();
std::vector<std::string> ircv3features;
std::vector<std::string> ircv3features{ "sasl" };
for (const auto& feature : clientV3Support()) {
const auto enabled = conf.IRCv3( QString::fromStdString(feature) ) == "1";
if (enabled)

@ -287,6 +287,7 @@ void IdealIRC::connectToServer(bool newStatus)
QString realname = conf.connection("Realname");
QString username = conf.connection("Username");
QString password = conf.connection("Password");
QString sasl = conf.connection("SASL");
if (server.isEmpty() || nickname.isEmpty() || realname.isEmpty() || username.isEmpty()) {
confDlg.show();
@ -313,6 +314,7 @@ void IdealIRC::connectToServer(bool newStatus)
con.setIdent(username.toStdString());
con.setNickname(nickname.toStdString());
con.setPassword(password.toStdString());
con.setV3SASL(sasl.toStdString());
bool manualKeepaliveEnabled = conf.common("ManualKeepaliveEnabled").toInt();
int manualKeepalive = manualKeepaliveEnabled ? conf.common("ManualKeepalive").toInt() : 0;

Loading…
Cancel
Save