Notification when user is flooding, fixes

This commit is contained in:
2022-02-16 20:05:14 +03:00
parent 8c3d7c3cc1
commit 49664064f6
3 changed files with 10 additions and 13 deletions
+7
View File
@@ -82,6 +82,13 @@ public class Reputation : CommonHandler
}
_antiFlood.RecordAction(Chat, From);
if (_antiFlood.IsUserFlooding(Chat, From))
{
await Reply(new HtmlString()
.UserMention(From).Pre(": пользователь отправлен в игнор.")
.ToString());
return;
}
}
var senderRepCount = await GetUserReputation(From);