Skip to content

Commit b8f03ab

Browse files
committed
Fix fuckups
1 parent 47f8465 commit b8f03ab

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

ArchiSteamFarm/Bot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static bool IsOwner(ulong steamID) {
9595
return steamID == Program.GlobalConfig.SteamOwnerID;
9696
}
9797

98-
internal static bool IsValidCdKey(string key) {
98+
private static bool IsValidCdKey(string key) {
9999
if (string.IsNullOrEmpty(key)) {
100100
return false;
101101
}

ArchiSteamFarm/JSON/Steam.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ internal bool IsPotentiallyDupesTrade {
272272
Dictionary<uint, Dictionary<Item.EType, uint>> ItemsToGivePerGame = new Dictionary<uint, Dictionary<Item.EType, uint>>();
273273
foreach (Item item in ItemsToGive) {
274274
Dictionary<Item.EType, uint> ItemsPerType;
275-
if (ItemsToGivePerGame.TryGetValue(item.RealAppID, out ItemsPerType)) {
275+
if (!ItemsToGivePerGame.TryGetValue(item.RealAppID, out ItemsPerType)) {
276276
ItemsPerType = new Dictionary<Item.EType, uint>();
277277
ItemsPerType[item.Type] = item.Amount;
278278
ItemsToGivePerGame[item.RealAppID] = ItemsPerType;
@@ -289,7 +289,7 @@ internal bool IsPotentiallyDupesTrade {
289289
Dictionary<uint, Dictionary<Item.EType, uint>> ItemsToReceivePerGame = new Dictionary<uint, Dictionary<Item.EType, uint>>();
290290
foreach (Item item in ItemsToReceive) {
291291
Dictionary<Item.EType, uint> ItemsPerType;
292-
if (ItemsToReceivePerGame.TryGetValue(item.RealAppID, out ItemsPerType)) {
292+
if (!ItemsToReceivePerGame.TryGetValue(item.RealAppID, out ItemsPerType)) {
293293
ItemsPerType = new Dictionary<Item.EType, uint>();
294294
ItemsPerType[item.Type] = item.Amount;
295295
ItemsToReceivePerGame[item.RealAppID] = ItemsPerType;

ArchiSteamFarm/Utilities.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,5 @@ internal static Task SleepAsync(int miliseconds) {
6464

6565
return Task.Delay(miliseconds);
6666
}
67-
68-
internal static uint GetCharCountInString(string s, char c) {
69-
if (string.IsNullOrEmpty(s)) {
70-
return 0;
71-
}
72-
73-
uint count = 0;
74-
foreach (char singleChar in s) {
75-
if (singleChar == c) {
76-
count++;
77-
}
78-
}
79-
80-
return count;
81-
}
8267
}
8368
}

0 commit comments

Comments
 (0)