Added const strings for versions

This commit is contained in:
mathusummut
2018-10-06 17:20:22 +02:00
parent 481fbbe534
commit e12f168a01
23 changed files with 98 additions and 124 deletions

View File

@@ -38,7 +38,7 @@
#include <string.h>
#include <stdlib.h>
#include "conversion.h"
#include "versions.h"
#include "shared_definitions.h"
using namespace Shared::Util;
using namespace Shared::PlatformCommon;
@@ -837,7 +837,7 @@ namespace Shared {
if (SystemFlags::VERBOSE_MODE_ENABLED || IRCThread::debugEnabled) printf("===> IRC: Line: %d\n", __LINE__);
safeMutex.Lock();
if (irc_connect(ircSession, argv[0].c_str(), IRC_SERVER_PORT, 0, this->nick.c_str(), this->username.c_str(), (string("ZetaGlest ") + GAME_VERSION).c_str())) {
if (irc_connect(ircSession, argv[0].c_str(), IRC_SERVER_PORT, 0, this->nick.c_str(), this->username.c_str(), (string("ZetaGlest ") + GameVersionString).c_str())) {
safeMutex.ReleaseLock();
if (SystemFlags::VERBOSE_MODE_ENABLED || IRCThread::debugEnabled) printf("===> IRC Could not connect: %s\n", irc_strerror(irc_errno(ircSession)));
return;