X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4213664cbb7a96bee57fec935878348cebbc7d40..6a7381b164a6998bd2822355c58ab514c9dc79a7:/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp diff --git a/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp b/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp index 91796148..854b2767 100644 --- a/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp +++ b/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp @@ -1,9 +1,12 @@ -#include // xmlrpc-c devs have missed something :) +#include "messages_methods.h" +#include "rpcconfig.h" +#include "stg/users.h" +#include "stg/user.h" #include "stg/message.h" #include "stg/common.h" -#include "messages_methods.h" -#include "rpcconfig.h" + +#include // xmlrpc-c devs have missed something :) extern volatile time_t stgTime; @@ -25,7 +28,7 @@ if (config->GetAdminInfo(cookie, &adminInfo)) return; } -STG_MSG message; +STG::Message message; std::map::iterator it; @@ -81,7 +84,8 @@ message.header.lastSendTime = 0; std::vector::iterator lit; for (lit = logins.begin(); lit != logins.end(); ++lit) { - USER_PTR ui; + using UserPtr = STG::User*; + UserPtr ui; if (users->FindByName(xmlrpc_c::value_string(*lit), &ui)) { printfd(__FILE__, "METHOD_MESSAGE_SEND::execute(): 'User '%s' not found'\n", std::string(xmlrpc_c::value_string(*lit)).c_str());