mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Misc
This commit is contained in:
@@ -143,7 +143,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
if (Bots.ContainsKey(botName)) {
|
||||
throw new Exception("That bot is already defined!");
|
||||
throw new ArgumentException("That bot is already defined!");
|
||||
}
|
||||
|
||||
string botPath = Path.Combine(SharedInfo.ConfigDirectory, botName);
|
||||
@@ -259,7 +259,9 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
// Register bot as available for ASF
|
||||
Bots[botName] = this;
|
||||
if (!Bots.TryAdd(botName, this)) {
|
||||
throw new ArgumentException("That bot is already defined!");
|
||||
}
|
||||
|
||||
if (!BotConfig.StartOnLaunch) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user