From: Samual Date: Tue, 20 Dec 2011 15:11:02 +0000 (-0500) Subject: Debug prints for cmd X-Git-Tag: xonotic-v0.6.0~188^2~28^2~93 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c9f76e6eb08543b9b543067ff8ae23df8549c0f9;p=xonotic%2Fxonotic-data.pk3dir.git Debug prints for cmd --- 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