From: divverent Date: Sun, 17 May 2009 19:03:27 +0000 (+0000) Subject: also block lines starting with "quit " from the history X-Git-Tag: xonotic-v0.1.0preview~1645 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7945206ca0c5a958be9b19c1ddfc36c63d6783ef;p=xonotic%2Fdarkplaces.git also block lines starting with "quit " from the history git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8973 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 885212da..1f5f7dce 100644 --- a/keys.c +++ b/keys.c @@ -100,6 +100,8 @@ static void Key_History_Push() mask = 0; if(!strcmp(key_line, "]quit")) // putting these into the history just sucks mask = 0; + if(!strncmp(key_line, "]quit ", 6)) // putting these into the history just sucks + mask = 0; Con_AddLine(key_line, strlen(key_line), mask); Con_PrintNotToHistory(key_line); // don't mark empty lines as history Con_PrintNotToHistory("\n");