From 9df5f8781eab0c8483e833919ae927abe488179e Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 15 Nov 2015 15:58:52 +0100 Subject: Fix logging of command response in clonkUserLog --- src/CRSMLogging.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/CRSMLogging.cpp') diff --git a/src/CRSMLogging.cpp b/src/CRSMLogging.cpp index 375010f..8fe0683 100644 --- a/src/CRSMLogging.cpp +++ b/src/CRSMLogging.cpp @@ -92,13 +92,13 @@ void CRSMLogging::clonkUserLog(const QString &message, const ClientInfo &client, { log("Action: " + message + "\n", userLogsFolder + client.toString()); } - else if(command) + else if(response) { - log("Command: " + message + "\n", userLogsFolder + client.toString()); + log("Response: " + message.trimmed() + "\n", userLogsFolder + client.toString()); } - else if(response) + else if(command) { - log("Response: " + message + "\n", userLogsFolder + client.toString()); + log("Command: " + message + "\n", userLogsFolder + client.toString()); } else { -- cgit v1.2.3-54-g00ecf