Skip to content

Commit

Permalink
Revert "hotfix for user catchup spam after users.conf corruption"
Browse files Browse the repository at this point in the history
This reverts commit 21f7965.
  • Loading branch information
LunarNightShade committed Nov 9, 2023
1 parent 054f83f commit fa6ba96
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Izzy-Moonbot/EventListeners/UserListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,10 @@ await _mod.AddRoles(member, _users[member.Id].RolesToReapplyOnRejoin,

var msg = $"{(catchingUp ? "Catching up on " : "")}Join: <@{member.Id}> (`{member.Id}`), created <t:{member.CreatedAt.ToUnixTimeSeconds()}:R>{autoSilence}{joinedBefore}{rolesAutoappliedString}";
_logger.Log($"Generated moderation log for user join: ${msg}");
if (!catchingUp)
{
await _modLogger.CreateModLog(member.Guild)
.SetContent(msg)
.SetFileLogContent(msg)
.Send();
}
await _modLogger.CreateModLog(member.Guild)
.SetContent(msg)
.SetFileLogContent(msg)
.Send();
}

private async Task MemberLeaveEvent(SocketGuild guild, SocketUser user)
Expand Down

0 comments on commit fa6ba96

Please sign in to comment.