This commit is contained in:
JustArchi
2017-07-23 02:11:16 +02:00
parent 65c2b81d0a
commit 2db65d324a
4 changed files with 262 additions and 23 deletions

View File

@@ -70,13 +70,18 @@ namespace ArchiSteamFarm {
public void Dispose() => ConfirmationsSemaphore.Dispose();
internal void CorrectDeviceID(string deviceID) {
internal bool CorrectDeviceID(string deviceID) {
if (string.IsNullOrEmpty(deviceID)) {
Bot.ArchiLogger.LogNullError(nameof(deviceID));
return;
return false;
}
if (!string.IsNullOrEmpty(DeviceID) && DeviceID.Equals(deviceID)) {
return false;
}
DeviceID = deviceID;
return true;
}
internal async Task<string> GenerateToken() {