mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
fix crash reported by ankostis
This commit is contained in:
parent
dd60566857
commit
4509ff7e3f
@ -1690,7 +1690,7 @@ Value getposts(const Array& params, bool fHelp)
|
|||||||
|
|
||||||
Value getdirectmsgs(const Array& params, bool fHelp)
|
Value getdirectmsgs(const Array& params, bool fHelp)
|
||||||
{
|
{
|
||||||
if (fHelp || params.size() < 2 || params.size() > 3)
|
if (fHelp || params.size() != 3)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
"getdirectmsgs <localuser> <count_per_user> '[{\"username\":username,\"max_id\":max_id,\"since_id\":since_id},...]'\n"
|
"getdirectmsgs <localuser> <count_per_user> '[{\"username\":username,\"max_id\":max_id,\"since_id\":since_id},...]'\n"
|
||||||
"get (locally stored) decrypted direct messages sent/received by user <localuser>\n"
|
"get (locally stored) decrypted direct messages sent/received by user <localuser>\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user