From cd431f9de2023cc65af9186a0c324e4672ec502b Mon Sep 17 00:00:00 2001 From: Rakesh Menon Date: Tue, 13 Sep 2016 09:41:52 -0400 Subject: [PATCH] Small bug in ComposePrivateMessage The recursive call to ComposePrivateMessage after the captcha solver is sending the incorrect parameter: captchaId where fromSubReddit is expected, this throws an error. --- RedditSharp/Reddit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedditSharp/Reddit.cs b/RedditSharp/Reddit.cs index 00902ea..4c88f0d 100644 --- a/RedditSharp/Reddit.cs +++ b/RedditSharp/Reddit.cs @@ -348,7 +348,7 @@ public void ComposePrivateMessage(string subject, string body, string to, string CaptchaResponse captchaResponse = solver.HandleCaptcha(new Captcha(captchaId)); if (!captchaResponse.Cancel) // Keep trying until we are told to cancel - ComposePrivateMessage(subject, body, to, captchaId, captchaResponse.Answer); + ComposePrivateMessage(subject, body, to, fromSubReddit, captchaId, captchaResponse.Answer); } }