From 4509ff7e3fec6bc0b5811ca3e30c0192f7338817 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 1 Apr 2014 22:23:24 -0300 Subject: [PATCH] fix crash reported by ankostis --- src/twister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twister.cpp b/src/twister.cpp index 7fd95099..d8b7a252 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -1690,7 +1690,7 @@ Value getposts(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( "getdirectmsgs '[{\"username\":username,\"max_id\":max_id,\"since_id\":since_id},...]'\n" "get (locally stored) decrypted direct messages sent/received by user \n"