From: cloudwalk Date: Wed, 20 May 2020 15:22:07 +0000 (+0000) Subject: Print different message for invalid sv->cl cmd. Improve consistency overall X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fac8103af6d9c5b43a2199c9a25517d8bfe73eba;p=xonotic%2Fdarkplaces.git Print different message for invalid sv->cl cmd. Improve consistency overall git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12546 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cmd.c b/cmd.c index ad109761..74f7eaff 100644 --- a/cmd.c +++ b/cmd.c @@ -2050,7 +2050,7 @@ void Cmd_ExecuteString (cmd_state_t *cmd, const char *text, cmd_source_t src, qb // if it's a client command and no command was found, say so. if (cmd->source == src_client) { - Con_Printf("player \"%s\" tried to %s\n", host_client->name, text); + Con_Printf("Client \"%s\" tried to execute \"%s\"\n", host_client->name, text); goto done; } @@ -2065,9 +2065,13 @@ void Cmd_ExecuteString (cmd_state_t *cmd, const char *text, cmd_source_t src, qb } // check cvars - if (!Cvar_Command(cmd) && host_framecount > 0) - Con_Printf("Unknown command \"%s\"\n", Cmd_Argv(cmd, 0)); - + if (!Cvar_Command(cmd) && host_framecount > 0) { + if (cmd == &cmd_clientfromserver) { + Con_Printf("Server tried to execute \"%s\"\n", Cmd_Argv(cmd, 0)); + } else { + Con_Printf("Unknown command \"%s\"\n", Cmd_Argv(cmd, 0)); + } + } done: cmd->tokenizebufferpos = oldpos; if (lockmutex)