Browse Source

Fixed bans being prematurely deactivated.

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

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

2
RenX.Core/RenX_Server.cpp

@ -704,7 +704,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
entry = entries.get(i);
if (entry->active)
{
if (entry->timestamp + entry->length > time(0))
if (entry->length != 0 && entry->timestamp + entry->length < time(0))
banDatabase->deactivate(i);
else if (server->localSteamBan && entry->steamid != 0 && entry->steamid == r->steamid)
server->kickPlayer(r);

Loading…
Cancel
Save