Compare commits

..

3 Commits

Author SHA1 Message Date
JustArchi
b80dee15b0 Fix proxy bot commands 2017-06-15 21:51:27 +02:00
JustArchi
e1c0d780e1 Bump 2017-06-15 20:41:30 +02:00
JustArchi
e61f69e885 Misc 2017-06-15 20:41:17 +02:00
3 changed files with 12 additions and 4 deletions

View File

@@ -1157,8 +1157,16 @@ namespace ArchiSteamFarm {
await Start().ConfigureAwait(false);
}
// This function should have no processing, it's just an alias to lowest permission having a command access
private bool IsAllowedToExecuteCommands(ulong steamID) => IsFamilySharing(steamID);
private static bool IsAllowedToExecuteCommands(ulong steamID) {
if (steamID == 0) {
ASF.ArchiLogger.LogNullError(nameof(steamID));
return false;
}
// This should have reference to lowest permission for command execution
bool result = Bots.Values.Any(bot => bot.IsFamilySharing(steamID));
return result;
}
private bool IsFamilySharing(ulong steamID) {
if (steamID == 0) {

View File

@@ -434,7 +434,7 @@ namespace ArchiSteamFarm {
}
ASF.ArchiLogger.LogFatalException((Exception) e.ExceptionObject);
await Task.Delay(1000).ConfigureAwait(false);
await Task.Delay(1000).ConfigureAwait(false); // For writing stuff to logs
await Exit(1).ConfigureAwait(false);
}

View File

@@ -44,7 +44,7 @@ namespace ArchiSteamFarm {
internal const string ServiceDescription = "ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.";
internal const string ServiceName = "ArchiSteamFarm";
internal const string StatisticsServer = "asf.justarchi.net";
internal const string VersionNumber = "2.3.1.9";
internal const string VersionNumber = "2.3.2.0";
internal static readonly Version Version = Assembly.GetEntryAssembly().GetName().Version;
}