summaryrefslogtreecommitdiffstats
path: root/src/game/server/whitelist.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
committeruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
commit0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch)
tree90ddefa28b40b6384dd9618bb7573704de2733a9 /src/game/server/whitelist.cc
parent6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff)
downloadvoxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2
voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip
Add include guards and header comments to sources
Diffstat (limited to 'src/game/server/whitelist.cc')
-rw-r--r--src/game/server/whitelist.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/server/whitelist.cc b/src/game/server/whitelist.cc
index 555e5f3..2370c67 100644
--- a/src/game/server/whitelist.cc
+++ b/src/game/server/whitelist.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: whitelist.cc
+// Description: Player allow-list
+
#include "server/pch.hh"
#include "server/whitelist.hh"
@@ -48,7 +53,7 @@ void whitelist::init_late(void)
PHYSFS_File* file = PHYSFS_openRead(whitelist::filename.c_str());
if(file == nullptr) {
- spdlog::warn("whitelist: {}: {}", whitelist::filename.get(), physfs_error());
+ spdlog::warn("whitelist: {}: {}", whitelist::filename.get(), physfs::last_error());
whitelist::enabled.set_value(false);
return;
}