]> git.stg.codes - stg.git/blobdiff - projects/stargazer/user_impl.cpp
Ticket 37. The 'change_policy' field value added when tariff values insert into
[stg.git] / projects / stargazer / user_impl.cpp
index 3693057692592f549084729b6769b588018f8211..5d505307a72302bbddccbe92be280aefdea592a7 100644 (file)
@@ -557,6 +557,8 @@ if (authorizedBy.empty())
     lastDisconnectReason = reason;
     lastIPForDisconnect = currIP;
     currIP = 0; // DelUser in traffcounter
+    if (connected)
+        Disconnect(false, "not authorized");
     return;
     }
 }