X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b50165cd491723d34aea2d05a41e78a29edd14a9..15683eb58c0d154f5dda82def6eccfdb2e3e76d2:/projects/stargazer/user_impl.cpp diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index d720ffe5..7f2d5e0b 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -38,14 +38,14 @@ #include #include +#include "stg/users.h" +#include "stg/common.h" +#include "stg/scriptexecuter.h" +#include "stg/tariff.h" +#include "stg/tariffs.h" +#include "stg/admin.h" #include "user_impl.h" -#include "users.h" -#include "common.h" #include "settings_impl.h" -#include "script_executer.h" -#include "tariff.h" -#include "tariffs.h" -#include "admin.h" USER_IMPL::USER_IMPL(const SETTINGS_IMPL * s, const STORE * st, @@ -628,7 +628,7 @@ if (!authorizedBy.empty()) { if (connected) { - lastActivityTime = *const_cast(&stgTime); + property.Stat().lastActivityTime = stgTime; } if (!connected && IsInetable()) { @@ -1281,6 +1281,10 @@ while (it != messages.end()) ++it; } } + else + { + ++it; + } } } //-----------------------------------------------------------------------------