X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/51998949e60e2a7e86e4393b315cfb76a58ca80d..acdf6ab94fee26ebc4017bf32cf6171c7d9462e9:/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; }