.arg(Quassel::buildInfo().buildDate)
.arg(updays).arg(uphours,2,10,QChar('0')).arg(upmins,2,10,QChar('0')).arg(startTime().toString(Qt::TextDate));
+ reply["CoreFeatures"] = (int)Quassel::features();
+
#ifdef HAVE_SSL
SslServer *sslServer = qobject_cast<SslServer *>(&_server);
QSslSocket *sslSocket = qobject_cast<QSslSocket *>(socket);
return;
}
- if(_storage->addUser(username, password).isValid()) {
+ if(_configured && _storage->addUser(username, password).isValid()) {
out << "Added user " << username << " successfully!" << endl;
} else {
qWarning() << "Unable to add user:" << qPrintable(username);
return;
}
- if(_storage->updateUser(userId, password)) {
+ if(_configured && _storage->updateUser(userId, password)) {
out << "Password changed successfuly!" << endl;
} else {
qWarning() << "Failed to change password!";