From: divverent Date: Wed, 27 Jun 2012 12:31:50 +0000 (+0000) Subject: don't put lines starting with rcon_password in the history X-Git-Tag: xonotic-v0.7.0~122 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42ddc95f466f8dba44536f4d8c8b4f30273e8bba;p=xonotic%2Fdarkplaces.git don't put lines starting with rcon_password in the history git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11832 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7fb8cfb8d7a076851563e7108d1bd1e1158ec3b6 --- diff --git a/keys.c b/keys.c index 18b7a844..0168b3f9 100644 --- a/keys.c +++ b/keys.c @@ -108,6 +108,8 @@ static void Key_History_Push(void) if(key_line[1]) // empty? if(strcmp(key_line, "]quit")) // putting these into the history just sucks if(strncmp(key_line, "]quit ", 6)) // putting these into the history just sucks + if(strcmp(key_line, "]rcon_password")) // putting these into the history just sucks + if(strncmp(key_line, "]rcon_password ", 15)) // putting these into the history just sucks ConBuffer_AddLine(&history, key_line + 1, strlen(key_line) - 1, 0); Con_Printf("%s\n", key_line); // don't mark empty lines as history history_line = -1;