fix missing MODE_READER bug
authorPaul Mangan <paul@claws-mail.org>
Sun, 7 Apr 2002 11:04:23 +0000 (11:04 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 7 Apr 2002 11:04:23 +0000 (11:04 +0000)
src/nntp.c

index a15921fb65569d1610eba4b9657b3b1776c2f99c..e771ecb7e81292e1258524987938db5677107de3 100644 (file)
@@ -121,6 +121,11 @@ gint nntp_group(NNTPSockInfo *sock, const gchar *group,
 
        ok = nntp_gen_command(sock, buf, "GROUP %s", group);
 
+       if (ok != NN_SUCCESS) {
+               ok = nntp_gen_command(sock, buf, "MODE READER");
+               if (ok == NN_SUCCESS)
+                       ok = nntp_gen_command(sock, buf, "GROUP %s", group);
+       }       
        if (ok != NN_SUCCESS)
                return ok;