#include "parser_message.h"
#include "stg/users.h"
+#include "stg/user.h"
-extern volatile time_t stgTime; // So sad...
+#include <cstring>
using STG::PARSER::SEND_MESSAGE;
printfd(__FILE__, "User not found. %s\n", m_logins[i].c_str());
continue;
}
- m_msg.header.creationTime = static_cast<unsigned int>(stgTime);
+ m_msg.header.creationTime = static_cast<unsigned int>(time(NULL));
m_user->AddMessage(&m_msg);
m_result = res_ok;
}
CreateAnswer();
- m_done = true;
return 0;
}