git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added missing method.
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
rpcconfig
/
messages_methods.cpp
diff --git
a/projects/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp
b/projects/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp
index 14319aa19e2490cae5746da31bdcbac3bd597bed..917961484cfe5014356e11fe5af8b272605dd052 100644
(file)
--- a/
projects/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp
+++ b/
projects/stargazer/plugins/configuration/rpcconfig/messages_methods.cpp
@@
-1,10
+1,11
@@
+#include <ostream> // xmlrpc-c devs have missed something :)
+
#include "stg/message.h"
#include "stg/common.h"
#include "stg/message.h"
#include "stg/common.h"
-#include "utils.h"
#include "messages_methods.h"
#include "rpcconfig.h"
#include "messages_methods.h"
#include "rpcconfig.h"
-extern
const
volatile time_t stgTime;
+extern volatile time_t stgTime;
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
@@
-74,7
+75,7
@@
if ((it = msgInfo.find("text")) == msgInfo.end())
}
message.text = IconvString(xmlrpc_c::value_string(it->second), "UTF-8", "CP1251");
}
message.text = IconvString(xmlrpc_c::value_string(it->second), "UTF-8", "CP1251");
-message.header.creationTime = st
gTime
;
+message.header.creationTime = st
atic_cast<int>(stgTime)
;
message.header.lastSendTime = 0;
std::vector<xmlrpc_c::value>::iterator lit;
message.header.lastSendTime = 0;
std::vector<xmlrpc_c::value>::iterator lit;