summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:21 +0200
commitef3cc5396fbcf193ddd1e3b6b5978bdda4bdbe55 (patch)
tree38b215c1adbe61503456a25b63f8fab10ab703e1 /src/game/g_main.c
parent90094e0e71e05b155a6a1edb1835607e1202a8bc (diff)
implement logging control for PMs
configurable via the new g_logPrivateMessages cvar: 0: do not log anything 1: log that a PM was sent, and to what name-pattern 2: log the contents of the PMs too a PM to the console is not considered a real PM. (logging is parallel with printing to the console.)
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 814224d..105a95e 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -200,6 +200,7 @@ vmCvar_t g_minLevelToJoinTeam;
vmCvar_t g_forceAutoSelect;
vmCvar_t g_privateMessages;
+vmCvar_t g_logPrivateMessages;
vmCvar_t g_decolourLogfiles;
vmCvar_t g_minLevelToSpecMM1;
vmCvar_t g_publicSayadmins;
@@ -470,6 +471,7 @@ static cvarTable_t gameCvarTable[ ] =
{ &g_maxGhosts, "g_maxGhosts", "0", CVAR_ARCHIVE, 0, qfalse },
{ &g_privateMessages, "g_privateMessages", "1", CVAR_ARCHIVE, 0, qfalse },
+ { &g_logPrivateMessages, "g_logPrivateMessages", "1", CVAR_ARCHIVE, 0, qfalse },
{ &g_decolourLogfiles, "g_decolourLogfiles", "0", CVAR_ARCHIVE, 0, qfalse },
{ &g_buildLogMaxLength, "g_buildLogMaxLength", "50", CVAR_ARCHIVE, 0, qfalse },
{ &g_myStats, "g_myStats", "1", CVAR_ARCHIVE, 0, qtrue },