X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7df336e60c959c440b2c330f7a7ca9b0251db2a1..f4333737c7e347efe9258ccf85c1237e03be619c:/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp index c93ac437..161190f5 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp @@ -22,9 +22,9 @@ #include "parser_message.h" #include "stg/users.h" -#include "stg/common.h" +#include "stg/user.h" -extern volatile time_t stgTime; // So sad... +#include using STG::PARSER::SEND_MESSAGE; @@ -98,7 +98,7 @@ int SEND_MESSAGE::End(void *, const char *el) printfd(__FILE__, "User not found. %s\n", m_logins[i].c_str()); continue; } - m_msg.header.creationTime = static_cast(stgTime); + m_msg.header.creationTime = static_cast(time(NULL)); m_user->AddMessage(&m_msg); m_result = res_ok; }