X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e3e39cff57129ed71935bd0016e16bc134742872..cc9b57b85e72f96a92a96c90ca9fbac5040129c3:/projects/stargazer/user_impl.cpp?ds=sidebyside diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 36930576..5d505307 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -557,6 +557,8 @@ if (authorizedBy.empty()) lastDisconnectReason = reason; lastIPForDisconnect = currIP; currIP = 0; // DelUser in traffcounter + if (connected) + Disconnect(false, "not authorized"); return; } }