From c9f76e6eb08543b9b543067ff8ae23df8549c0f9 Mon Sep 17 00:00:00 2001 From: Samual Date: Tue, 20 Dec 2011 10:11:02 -0500 Subject: [PATCH] Debug prints for cmd --- qcsrc/server/command/cmd.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 8e20fac5b..ac3d7a93a 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -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 -- 2.39.2