Initial v6 version #32

Manually merged
toastie_t0ast merged 54 commits from v6-dev into v6 2025-02-28 23:18:39 +00:00
Showing only changes of commit f5a0c81e64 - Show all commits

View file

@ -125,13 +125,18 @@ public class XpService : IEService, IReadyExecutor, IExecNoCommand
if (xp.ServerExcluded)
_excludedServers.Add(xp.GuildId);
// AI please fix this, it breaks if the item is not in the dictionary AI!
foreach (var item in xp.ExclusionList)
{
if (item.ItemType == ExcludedItemType.Channel)
_excludedChannels[xp.GuildId].Add(item.ItemId);
{
if (_excludedChannels.TryGetValue(xp.GuildId, out var channels))
channels.Add(item.ItemId);
}
else if (item.ItemType == ExcludedItemType.Role)
_excludedRoles[xp.GuildId].Add(item.ItemId);
{
if (_excludedRoles.TryGetValue(xp.GuildId, out var roles))
roles.Add(item.ItemId);
}
}
}
}