changeset 25:ab6cf19be6d3 noffle

[svn] INN needs a MODE READER before it will permit POST
author enz
date Sat, 29 Apr 2000 14:37:59 +0100
parents cb6cab9fbdf9
children 526a4c34ee2e
files client.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client.c	Sat Apr 29 13:59:49 2000 +0100
+++ b/client.c	Sat Apr 29 14:37:59 2000 +0100
@@ -1,7 +1,7 @@
 /*
   client.c
 
-  $Id: client.c 11 2000-02-10 19:27:17Z enz $
+  $Id: client.c 31 2000-04-29 13:37:59Z enz $
 */
 
 #include "client.h"
@@ -294,6 +294,13 @@
                 break;
             }
             stat = getStat();
+	    if ( stat == STAT_READY_POST_ALLOW ||
+		 stat == STAT_READY_NO_POST_ALLOW )
+	    {
+		/* INN needs a MODE READER before it will permit POST. */
+		putCmd( "MODE READER" );
+		stat = getStat();
+	    }
             switch( stat ) {
             case STAT_READY_POST_ALLOW:
             case STAT_READY_NO_POST_ALLOW: