|
|
@ -246,7 +246,7 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "newdirectmsg", &newdirectmsg, false, true }, |
|
|
|
{ "newdirectmsg", &newdirectmsg, false, true }, |
|
|
|
{ "newrtmsg", &newrtmsg, false, true }, |
|
|
|
{ "newrtmsg", &newrtmsg, false, true }, |
|
|
|
{ "getposts", &getposts, false, true }, |
|
|
|
{ "getposts", &getposts, false, true }, |
|
|
|
{ "getlocaldirectmessages", &getlocaldirectmessages, false, true }, |
|
|
|
{ "getdirectmsgs", &getdirectmsgs, false, true }, |
|
|
|
{ "setspammsg", &setspammsg, false, true }, |
|
|
|
{ "setspammsg", &setspammsg, false, true }, |
|
|
|
{ "getspammsg", &getspammsg, false, true }, |
|
|
|
{ "getspammsg", &getspammsg, false, true }, |
|
|
|
{ "follow", &follow, false, true }, |
|
|
|
{ "follow", &follow, false, true }, |
|
|
@ -1240,8 +1240,8 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri |
|
|
|
if (strMethod == "getposts" && n > 0) ConvertTo<boost::int64_t>(params[0]); |
|
|
|
if (strMethod == "getposts" && n > 0) ConvertTo<boost::int64_t>(params[0]); |
|
|
|
if (strMethod == "getposts" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "getposts" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "getposts" && n > 2) ConvertTo<boost::int64_t>(params[2]); |
|
|
|
if (strMethod == "getposts" && n > 2) ConvertTo<boost::int64_t>(params[2]); |
|
|
|
if (strMethod == "getlocaldirectmessages" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "getdirectmsgs" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "getlocaldirectmessages" && n > 2) ConvertTo<Array>(params[2]); |
|
|
|
if (strMethod == "getdirectmsgs" && n > 2) ConvertTo<Array>(params[2]); |
|
|
|
if (strMethod == "follow" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "follow" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "unfollow" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "unfollow" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "listusernamespartial" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
if (strMethod == "listusernamespartial" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|