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 40ce5a0 commit b489391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core
Submodule Core updated 1 files
+14 −0 Valkyrja-methods.cs
2 changes: 2 additions & 0 deletions Modules/Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,8 @@ private async Task LogBan(Server server, string userName, guid userId, string re
try
{
this.Client.Monitoring.Bans.Inc();
if( string.IsNullOrEmpty(userName) )
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 b489391

Please sign in to comment.