Skip to content

Commit

Permalink
log unknown events
Browse files Browse the repository at this point in the history
  • Loading branch information
RheaAyase committed Nov 4, 2024
1 parent b489391 commit 207396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ private async Task LogBan(Server server, string userName, guid userId, string re
try
{
this.Client.Monitoring.Bans.Inc();
if( string.IsNullOrEmpty(userName) )
if( issuedBy == null )
await this.Client.LogMessageUnknown(LogType.None, server.Id, "Unknown Ban Event");
if( issuedBy?.Id == server.Guild.CurrentUser.Id )
await StatsIncrement(server, StatsType.BannedByValk);
Expand Down

0 comments on commit 207396b

Please sign in to comment.