Skip to content

Commit

Permalink
one more NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Dec 4, 2023
1 parent 0d629b7 commit 06acabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VahterBanBot/Bot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let isBanAuthorized
logger.LogWarning $"User {fromUsername} {fromUserId} tried to {banType} user {targetUsername} ({targetUserId}) from not allowed chat {chatUsername} ({chatId})"
false
// check that user is not trying to ban other admins
elif isBannedPersonAdmin botConfig message then
elif isBan && isBannedPersonAdmin botConfig message then
logger.LogWarning $"User {fromUsername} ({fromUserId}) tried to {banType} admin {targetUsername} ({targetUserId}) in chat {chatUsername} ({chatId}"
false
else
Expand Down

0 comments on commit 06acabf

Please sign in to comment.