]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
g_chat_tellprivacy -- also print "tell" messages to console if disabled
authorSamual Lenks <samual@xonotic.org>
Fri, 5 Oct 2012 02:47:06 +0000 (22:47 -0400)
committerSamual Lenks <samual@xonotic.org>
Fri, 5 Oct 2012 02:47:06 +0000 (22:47 -0400)
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_player.qc

index 69ab2b1a1d401a77296dd70f3bd665a4143d1a3f..0227c0ee1f6e770f771592aa01b5dc63ff31db88 100644 (file)
@@ -813,6 +813,7 @@ set g_chat_flood_lmax_tell 2        "private chat: maximum number of lines per chat mes
 set g_chat_flood_burst_tell 2  "private chat: allow bursts of so many chat lines"
 set g_chat_flood_notify_flooder 1      "when 0, the flooder still can see his own message"
 set g_chat_teamcolors 0        "colorize nicknames in team color for chat"
+set g_chat_tellprivacy 1 "when disabled, tell messages are also sent to the server console log... otherwise they're kept private between players."
 set g_nick_flood_timeout 120 "time after which nick flood protection resets (set to 0 to disable nick flood checking)"
 set g_nick_flood_penalty 0.5 "duration of the nick flood penalty"
 set g_nick_flood_penalty_yellow 3 "number of changes to allow before warning and movement blocking"
index 86688d1814295c17b726ec683f3f0b473c8700a2..9d52dd79941e614edbe3d33f2d8389223b4d080a 100644 (file)
@@ -761,6 +761,7 @@ float autocvar_g_chat_flood_spl_team;
 float autocvar_g_chat_flood_spl_tell;
 float autocvar_g_chat_nospectators;
 float autocvar_g_chat_teamcolors;
+float autocvar_g_chat_tellprivacy;
 float autocvar_g_ctf_allow_vehicle_carry;
 float autocvar_g_ctf_allow_vehicle_touch;
 float autocvar_g_ctf_throw;
index d582540c094d363205db33af43e548c9b00f05d7..1d8bae63687d21a91a13feb47ed6700c99e0d8b3 100644 (file)
@@ -1023,10 +1023,11 @@ float Say(entity source, float teamsay, entity privatesay, string msgin, float f
                        if(sourcecmsgstr != "" && !privatesay)
                                centerprint(source, sourcecmsgstr);
                }
-               else if(privatesay) // private message, between 2 people only, not sent to server console
+               else if(privatesay) // private message, between 2 people only
                {
                        sprint(source, sourcemsgstr);
                        sprint(privatesay, msgstr);
+                       if not(autocvar_g_chat_tellprivacy) { dedicated_print(msgstr); } // send to server console too if "tellprivacy" is disabled
                        if(cmsgstr != "")
                                centerprint(privatesay, cmsgstr);
                }