X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/367181dd32e2f94d68f3f040bd9d9a20ba1250c3..72635da73fc450b040d72fbeca4becd73c99008d:/projects/stargazer/user_impl.cpp 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; } }