X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..8582d7dfe21e7225d4a715501d70c2649268228f:/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp index b4607996..161190f5 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp @@ -26,8 +26,6 @@ #include -extern volatile time_t stgTime; // So sad... - using STG::PARSER::SEND_MESSAGE; const char * SEND_MESSAGE::tag = "Message"; @@ -100,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; }