aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-17 16:54:01 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-17 16:54:01 +0000
commit9ddffbf04a407bad96d2171ffc2dc2153be79a31 (patch)
tree47822539661e5d14dee8aa3b1823a1db1c1f2eb3 /code/server
parent1b7ebbe7c9b66e796f2864bab0f4b55c9de1f4f9 (diff)
downloadioquake3-aero-9ddffbf04a407bad96d2171ffc2dc2153be79a31.tar.gz
ioquake3-aero-9ddffbf04a407bad96d2171ffc2dc2153be79a31.zip
Add received rcon command string to server log, see https://bugzilla.icculus.org/show_bug.cgi?id=3748
git-svn-id: svn://svn.icculus.org/quake3/trunk@1633 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c
index 5d3c7ff..6215791 100644
--- a/code/server/sv_main.c
+++ b/code/server/sv_main.c
@@ -512,10 +512,10 @@ static void SVC_RemoteCommand( netadr_t from, msg_t *msg ) {
if ( !strlen( sv_rconPassword->string ) ||
strcmp (Cmd_Argv(1), sv_rconPassword->string) ) {
valid = qfalse;
- Com_Printf ("Bad rcon from %s:\n%s\n", NET_AdrToString (from), Cmd_Argv(2) );
+ Com_Printf ("Bad rcon from %s: %s\n", NET_AdrToString (from), Cmd_ArgsFrom(2) );
} else {
valid = qtrue;
- Com_Printf ("Rcon from %s:\n%s\n", NET_AdrToString (from), Cmd_Argv(2) );
+ Com_Printf ("Rcon from %s: %s\n", NET_AdrToString (from), Cmd_ArgsFrom(2) );
}
// start redirecting all print outputs to the packet