hedgewars/uCommands.pas
changeset 8498 eecadca7db50
parent 7850 fcbb024090a4
child 9080 9b42757d7e71
--- a/hedgewars/uCommands.pas	Mon Feb 11 00:19:15 2013 +0400
+++ b/hedgewars/uCommands.pas	Mon Feb 11 10:20:07 2013 +0400
@@ -88,12 +88,14 @@
 //WriteLnToConsole(CmdStr);
 if CmdStr[0]=#0 then
     exit;
+
+AddFileLog('[Cmd] ' + sanitizeForLog(CmdStr));
+
 c:= CmdStr[1];
 if (c = '/') or (c = '$') then
     Delete(CmdStr, 1, 1);
 s:= '';
 SplitBySpace(CmdStr, s);
-AddFileLog('[Cmd] ' + CmdStr + ' (' + inttostr(length(s)) + ')');
 
 t:= Variables;
 while t <> nil do