]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Debug prints for cmd
authorSamual <samual@xonotic.org>
Tue, 20 Dec 2011 15:11:02 +0000 (10:11 -0500)
committerSamual <samual@xonotic.org>
Tue, 20 Dec 2011 15:11:02 +0000 (10:11 -0500)
qcsrc/server/command/cmd.qc

index 8e20fac5b6154a71a57335d869198c25ee8f1ce7..ac3d7a93aaf8e2456cb0d8e692e8c872f3c63f0c 100644 (file)
@@ -616,6 +616,8 @@ void SV_ParseClientCommand(string command)
        // argv:   0    - 1      - 2     - 3 
        // cmd     vote - master - login - password
        
+       print("recieved normal command: ", command, ".\n");
+       
        // for floodcheck
        switch(strtolower(argv(0)))
        {
@@ -632,7 +634,7 @@ void SV_ParseClientCommand(string command)
                        if(SV_ParseClientCommand_floodcheck())
                                break; // "TRUE": continue, as we're not flooding yet
                        else
-                               return; // "FALSE": not allowed to continue, halt
+                               return print("ANTISPAM CAUGHT: ", command, ".\n"); // "FALSE": not allowed to continue, halt
        }
        
        /* NOTE: totally disabled for now, however the functionality and descriptions are there if we ever want it.
@@ -663,5 +665,8 @@ void SV_ParseClientCommand(string command)
                return; // handled by one of the above GameCommand_* functions
        }
        else
+       {
+               print("sent command to engine: ", command, ".\n");
                clientcommand(self, command);
+       }
 }
\ No newline at end of file