#5 make ircddb version sam structure as ircddbgateway ircddb version

pull/32/head
Geoffrey Merck 4 years ago committed by GitHub
parent 9bb9f0b3e4
commit 12b0d03765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -215,12 +215,13 @@ bool CDStarGatewayApp::createThread()
CLog::logInfo("DD Mode enabled: %d", int(ddEnabled));
// Setup ircddb
auto ircddbVersionInfo = "linux_" + PRODUCT_NAME + "-" + VERSION;
std::vector<CIRCDDB *> clients;
for(unsigned int i=0; i < config.getIrcDDBCount(); i++) {
TircDDB ircDDBConfig;
config.getIrcDDB(i, ircDDBConfig);
CLog::logInfo("ircDDB Network %d set to %s user: %s, Quadnet %d", i + 1,ircDDBConfig.hostname.c_str(), ircDDBConfig.username.c_str(), ircDDBConfig.isQuadNet);
CIRCDDB * ircDDB = new CIRCDDBClient(ircDDBConfig.hostname, 9007U, ircDDBConfig.username, ircDDBConfig.password, FULL_PRODUCT_NAME, gatewayConfig.address, ircDDBConfig.isQuadNet);
CIRCDDB * ircDDB = new CIRCDDBClient(ircDDBConfig.hostname, 9007U, ircDDBConfig.username, ircDDBConfig.password, ircddbVersionInfo, gatewayConfig.address, ircDDBConfig.isQuadNet);
clients.push_back(ircDDB);
}
if(clients.size() > 0U) {
@ -312,4 +313,4 @@ void CDStarGatewayApp::terminateHandler()
CLog::logFatal("Stack Trace : \n%s", stackTrace.str().c_str());
#endif
exit(1);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.