X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0c9d10cb3d9399280fe5eca715287d2454788654..5d4c15726d59897e9b6b52aaf986a4c4ea2fb553:/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 18767320..06489a42 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp @@ -22,15 +22,16 @@ #include "parser_message.h" #include "stg/users.h" -#include "stg/common.h" extern volatile time_t stgTime; // So sad... 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, tag.c_str()) != 0) + if (strcasecmp(el, m_tag.c_str()) != 0) return -1; for (size_t i = 0; i < 14; i++) @@ -85,7 +86,7 @@ int SEND_MESSAGE::Start(void *, const char *el, const char **attr) int SEND_MESSAGE::End(void *, const char *el) { - if (strcasecmp(el, tag.c_str()) != 0) + if (strcasecmp(el, m_tag.c_str()) != 0) return -1; m_result = res_unknown; @@ -126,13 +127,13 @@ void SEND_MESSAGE::CreateAnswer() switch (m_result) { case res_ok: - answer = ""; + m_answer = ""; break; case res_params_error: - answer = ""; + m_answer = ""; break; case res_unknown: - answer = ""; + m_answer = ""; break; } }