git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'github/master'
[stg.git]
/
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 2e41fcc9130102973116ed918420e904086be6bd..161190f548acdd39e0894258fc6ca858d0d89071 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp
+++ b/
projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp
@@
-22,12
+22,14
@@
#include "parser_message.h"
#include "stg/users.h"
#include "parser_message.h"
#include "stg/users.h"
-#include "stg/
common
.h"
+#include "stg/
user
.h"
-extern volatile time_t stgTime; // So sad...
+#include <cstring>
using STG::PARSER::SEND_MESSAGE;
using STG::PARSER::SEND_MESSAGE;
+const char * SEND_MESSAGE::tag = "Message";
+
int SEND_MESSAGE::Start(void *, const char *el, const char **attr)
{
if (strcasecmp(el, m_tag.c_str()) != 0)
int SEND_MESSAGE::Start(void *, const char *el, const char **attr)
{
if (strcasecmp(el, m_tag.c_str()) != 0)
@@
-96,7
+98,7
@@
int SEND_MESSAGE::End(void *, const char *el)
printfd(__FILE__, "User not found. %s\n", m_logins[i].c_str());
continue;
}
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;
}
m_user->AddMessage(&m_msg);
m_result = res_ok;
}