diff --git a/Modules/Logging.cs b/Modules/Logging.cs index 55725b6..181988d 100644 --- a/Modules/Logging.cs +++ b/Modules/Logging.cs @@ -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);