]> git.stg.codes - stg.git/blobdiff - projects/stargazer/user_impl.cpp
stg-2.409 pre-merge.
[stg.git] / projects / stargazer / user_impl.cpp
index f71627306b1ab992549387d1c072aa6cbbe6d64b..11f4385b505a853f2bb75a4f34dd62679b4a95a3 100644 (file)
@@ -557,6 +557,8 @@ if (authorizedBy.empty())
     lastDisconnectReason = reason;
     lastIPForDisconnect = currIP;
     currIP = 0; // DelUser in traffcounter
     lastDisconnectReason = reason;
     lastIPForDisconnect = currIP;
     currIP = 0; // DelUser in traffcounter
+    if (connected)
+        Disconnect(false, "not authorized");
     return;
     }
 }
     return;
     }
 }