summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index f93b2f8..dad9cfe 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -5799,10 +5799,14 @@ void G_PrivateMessage( gentity_t *ent )
ADMP( va( "%s\n", str ) );
- G_LogPrintf( "%s: %s^7: %s^7: %s\n",
- ( teamonly ) ? "tprivmsg" : "privmsg",
- ( ent ) ? ent->client->pers.netname : "console",
- name, msg );
+ if( g_logPrivateMessages.integer >= 1 )
+ {
+ G_LogPrintf( "%s: %s^7: %s^7%s%s\n",
+ ( teamonly ) ? "tprivmsg" : "privmsg",
+ ( ent ) ? ent->client->pers.netname : "console",
+ name, g_logPrivateMessages.integer >= 2 ? ": " : "",
+ g_logPrivateMessages.integer >= 2 ? msg : "" );
+ }
}
if( ignored )