|
@@ -137,7 +137,7 @@ void App::loadServerList()
|
|
|
print("Maximum number of servers allowed reached, some servers weren't added to the monitoring list.\n");
|
|
|
return;
|
|
|
}
|
|
|
- addClient(sv.address, sv.port);
|
|
|
+ addClient(sv.address, sv.port, sv.password);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -175,7 +175,7 @@ void App::print(const QString &msg)
|
|
|
}
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
-bool App::addClient(const QString &host, quint16 port)
|
|
|
+bool App::addClient(const QString &host, quint16 port, const QString& password)
|
|
|
{
|
|
|
ActiveClient* ac;
|
|
|
QHostAddress ha(host);
|
|
@@ -189,7 +189,7 @@ bool App::addClient(const QString &host, quint16 port)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- ac = new ActiveClient(this, this);
|
|
|
+ ac = new ActiveClient(this, password, this);
|
|
|
ac->setAddress(ha, port);
|
|
|
ac->client()->setQuakeFolder(Settings::globalInstance()->quakeFolder().toAscii().data());
|
|
|
ac->client()->setName(Settings::globalInstance()->botName().toAscii().data());
|