-#include "messages_methods.h"
+#include <ostream> // xmlrpc-c devs have missed something :)
+#include "stg/message.h"
+#include "stg/common.h"
+#include "messages_methods.h"
#include "rpcconfig.h"
-#include "stg_message.h"
-#include "utils.h"
+
+extern volatile time_t stgTime;
//------------------------------------------------------------------------------
}
message.text = IconvString(xmlrpc_c::value_string(it->second), "UTF-8", "CP1251");
-message.header.creationTime = stgTime;
+message.header.creationTime = static_cast<int>(stgTime);
message.header.lastSendTime = 0;
std::vector<xmlrpc_c::value>::iterator lit;
for (lit = logins.begin(); lit != logins.end(); ++lit)
{
- user_iter ui;
+ USER_PTR 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());