This commit is contained in:
JustArchi
2016-06-01 02:19:22 +02:00
parent 93d235c1b2
commit 8ce70889d7

View File

@@ -1320,7 +1320,12 @@ namespace ArchiSteamFarm {
return;
}
SendMessage(chatID, await Response(steamID, message).ConfigureAwait(false));
string response = await Response(steamID, message).ConfigureAwait(false);
if (string.IsNullOrEmpty(response)) { // We respond with null when user is not authorized (and similar)
return;
}
SendMessage(chatID, response);
}
private void SendMessage(ulong steamID, string message) {