Skip to content

Commit

Permalink
codechange - ScriptEngine: fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed May 24, 2022
1 parent 09ac8a8 commit b7db3dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/server/ScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,13 +1103,13 @@ void ServerScript::setUserColourNum(int uid, int num) {

std::string ServerScript::getUserToken(int uid) {
Client *c = seq->getClient(uid);
if (!c) return 0;
if (!c) return "";
return std::string(c->user.usertoken, 40);
}

std::string ServerScript::getUserVersion(int uid) {
Client *c = seq->getClient(uid);
if (!c) return 0;
if (!c) return "";
return std::string(c->user.clientversion, 25);
}

Expand Down Expand Up @@ -1201,7 +1201,7 @@ std::string ServerScript::get_IPAddr() { return Config::getIPAddr(); }

unsigned int ServerScript::get_listenPort() { return Config::getListenPort(); }

int ServerScript::get_serverMode() { return Config::getServerMode(); }
int ServerScript::get_serverMode() { return (int)Config::getServerMode(); }

std::string ServerScript::get_owner() { return Config::getOwner(); }

Expand Down

0 comments on commit b7db3dd

Please sign in to comment.