Skip to content

Commit

Permalink
fix lastnames
Browse files Browse the repository at this point in the history
  • Loading branch information
TiraelSedai committed Aug 12, 2024
1 parent ef959d6 commit 05c9bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClubDoorman/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private async Task HandleUpdate(Update update, User me, CancellationToken stoppi
await _bot.DeleteMessageAsync(message.Chat.Id, message.MessageId, stoppingToken);
_banned.TryAdd(message.Chat.Id, (message.Chat.Title ?? "", []));
var list = _banned[message.Chat.Id].Users;
list.Add(FullName(user.FirstName, user.FirstName));
list.Add(FullName(user.FirstName, user.LastName));
}
else
{
Expand Down Expand Up @@ -402,7 +402,7 @@ private async Task<bool> BanIfBlacklisted(User user, Chat chat)
await _bot.BanChatMemberAsync(chat.Id, user.Id);
_banned.TryAdd(chat.Id, (chat.Title ?? "", []));
var list = _banned[chat.Id].Users;
list.Add(FullName(user.FirstName, user.FirstName));
list.Add(FullName(user.FirstName, user.LastName));
return true;
}
catch (Exception e)
Expand Down

0 comments on commit 05c9bb1

Please sign in to comment.