This commit is contained in:
JustArchi
2017-02-20 15:08:24 +01:00
parent 8bd4c6a91d
commit 8327b94e9e

View File

@@ -304,11 +304,11 @@ namespace ArchiSteamFarm {
}
internal static string FormatBotResponse(string response, string botName) {
if (!string.IsNullOrEmpty(response)) {
if (!string.IsNullOrEmpty(response) && !string.IsNullOrEmpty(botName)) {
return Environment.NewLine + "<" + botName + "> " + response;
}
ASF.ArchiLogger.LogNullError(nameof(response));
ASF.ArchiLogger.LogNullError(nameof(response) + " || " + nameof(botName));
return null;
}