User inputs round limit. (#240)

This commit is contained in:
Ravin Perera
2021-02-14 20:19:53 +05:30
committed by GitHub
parent 067883b778
commit 033b5fa7bc
13 changed files with 234 additions and 160 deletions

View File

@@ -66,7 +66,7 @@ namespace usr
{
// This is an authed user.
connected_user &user = itr->second;
if (handle_user_message(user, message) != 0)
if (handle_authed_user_message(user, message) != 0)
{
session.increment_metric(comm::SESSION_THRESHOLDS::MAX_BADMSGS_PER_MINUTE, 1);
LOG_DEBUG << "Bad message from user " << session.display_name();