]> git.stg.codes - stg.git/blobdiff - projects/stargazer/user_impl.cpp
stg-2.409 pre-merge.
[stg.git] / projects / stargazer / user_impl.cpp
index 51f49ff13dccb4726a9575d910c35ea2ccd9e29c..11f4385b505a853f2bb75a4f34dd62679b4a95a3 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;
     }
 }
@@ -1352,7 +1354,7 @@ for (size_t i = 0; i < property.Conf().services.size(); ++i)
     if (m_services.Find(property.Conf().services[i], &conf))
         continue;
     if (conf.payDay == tms.tm_mday ||
-        conf.payDay == 0 && tms.tm_mday == DaysInCurrentMonth())
+        (conf.payDay == 0 && tms.tm_mday == DaysInCurrentMonth()))
         {
         double c = cash;
         double fee = conf.cost * passiveTimePart;