Browse Source

Added checks for blank entry fields; active status is now updated in the config.

pull/3/head
JustinAJ 10 years ago
parent
commit
1a04237de4
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 8
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

8
RenX.Core/RenX_Server.cpp

@ -705,12 +705,12 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
if (entry->active) if (entry->active)
{ {
if (entry->timestamp + entry->length > time(0)) if (entry->timestamp + entry->length > time(0))
entry->active = false; banDatabase->deactivate(i);
else if (server->localSteamBan && entry->steamid == r->steamid) else if (server->localSteamBan && entry->steamid != 0 && entry->steamid == r->steamid)
server->kickPlayer(r); server->kickPlayer(r);
else if (server->localIPBan && entry->ip == r->ip32) else if (server->localIPBan && entry->ip != 0 && entry->ip == r->ip32)
server->kickPlayer(r); server->kickPlayer(r);
else if (server->localNameBan && entry->name.equalsi(r->name)) else if (server->localNameBan && entry->name.isEmpty() == false && entry->name.equalsi(r->name))
server->kickPlayer(r); server->kickPlayer(r);
} }
} }

Loading…
Cancel
Save