nntpsend - fixed cleared error result after failed login. (Amos)
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@137 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
1af872c6a0
commit
59ebd894da
10
nntpsend.pas
10
nntpsend.pas
@ -1,9 +1,9 @@
|
|||||||
{==============================================================================|
|
{==============================================================================|
|
||||||
| Project : Ararat Synapse | 001.005.002 |
|
| Project : Ararat Synapse | 001.005.003 |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Content: NNTP client |
|
| Content: NNTP client |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Copyright (c)1999-2010, Lukas Gebauer |
|
| Copyright (c)1999-2011, Lukas Gebauer |
|
||||||
| All rights reserved. |
|
| All rights reserved. |
|
||||||
| |
|
| |
|
||||||
| Redistribution and use in source and binary forms, with or without |
|
| Redistribution and use in source and binary forms, with or without |
|
||||||
@ -33,7 +33,7 @@
|
|||||||
| DAMAGE. |
|
| DAMAGE. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||||
| Portions created by Lukas Gebauer are Copyright (c) 1999-2010. |
|
| Portions created by Lukas Gebauer are Copyright (c) 1999-2011. |
|
||||||
| All Rights Reserved. |
|
| All Rights Reserved. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Contributor(s): |
|
| Contributor(s): |
|
||||||
@ -292,11 +292,13 @@ begin
|
|||||||
if not Connect then
|
if not Connect then
|
||||||
Exit;
|
Exit;
|
||||||
Result := (ReadResult div 100) = 2;
|
Result := (ReadResult div 100) = 2;
|
||||||
|
if Result then
|
||||||
|
begin
|
||||||
ListExtensions;
|
ListExtensions;
|
||||||
FNNTPcap.Assign(Fdata);
|
FNNTPcap.Assign(Fdata);
|
||||||
if Result then
|
|
||||||
if (not FullSSL) and FAutoTLS and (FindCap('STARTTLS') <> '') then
|
if (not FullSSL) and FAutoTLS and (FindCap('STARTTLS') <> '') then
|
||||||
Result := StartTLS;
|
Result := StartTLS;
|
||||||
|
end;
|
||||||
if (FUsername <> '') and Result then
|
if (FUsername <> '') and Result then
|
||||||
begin
|
begin
|
||||||
FSock.SendString('AUTHINFO USER ' + FUsername + CRLF);
|
FSock.SendString('AUTHINFO USER ' + FUsername + CRLF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user