]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
also block lines starting with "quit " from the history
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 May 2009 19:03:27 +0000 (19:03 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 May 2009 19:03:27 +0000 (19:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8973 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index 885212da699a113c7dfb6bbd07412f9be2a2b703..1f5f7dce2f61af03a0099becc59aa07e03b2b7b0 100644 (file)
--- 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");