Browse Source

Bans are now only marked as active if they have a ban type

release/0.19
Jessica James 5 years ago
parent
commit
ddb99f014d
  1. 2
      src/Plugins/RenX/RenX.Core/RenX_BanDatabase.cpp

2
src/Plugins/RenX/RenX.Core/RenX_BanDatabase.cpp

@ -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();
if (flags != 0) {
entry->set_active();
entry->flags |= flags;
}
entry->timestamp = std::chrono::system_clock::now();
entry->length = length;
entry->steamid = player.steamid;

Loading…
Cancel
Save