Skip to content

Commit

Permalink
Bans are now only marked as active if they have a ban type
Browse files Browse the repository at this point in the history
  • Loading branch information
JAJames committed Dec 2, 2019
1 parent 920ac76 commit ddb99f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Plugins/RenX/RenX.Core/RenX_BanDatabase.cpp
Expand Up @@ -166,8 +166,10 @@ void RenX::BanDatabase::write(RenX::BanDatabase::Entry *entry, FILE *file)
void RenX::BanDatabase::add(RenX::Server *server, const RenX::PlayerInfo &player, const Jupiter::ReadableString &banner, const Jupiter::ReadableString &reason, std::chrono::seconds length, uint16_t flags)
{
Entry *entry = new Entry();
entry->set_active();
entry->flags |= flags;
if (flags != 0) {
entry->set_active();
entry->flags |= flags;
}
entry->timestamp = std::chrono::system_clock::now();
entry->length = length;
entry->steamid = player.steamid;
Expand Down

0 comments on commit ddb99f0

Please sign in to comment.