]> Git repositories of Nishi - okuu.git/commitdiff
fix
authorNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 10:17:32 +0000 (10:17 +0000)
committerNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 10:17:32 +0000 (10:17 +0000)
git-svn-id: file:///raid/svn-personal/okuu/trunk@10 7d206d2a-66c2-044b-96de-ba755a9b3ba8

Bot/news.c

index e9d9ea5800929414936f3c2632b8edb8a836886d..7a92547e76450c9ceecc73255923891ba0e49ec5 100644 (file)
@@ -325,6 +325,9 @@ int ok_news_write(const char* nick, const char* message){
                                send(nt_sock, ".\r\n", 3, 0);
                                sta = ok_news_parse(nt_sock);
                                if(sta != 240) goto cleanup;
+                               send(nt_sock, "QUIT\r\n", 6, 0);
+                               sta = ok_news_parse(nt_sock);
+                               if(sta != 205) goto cleanup;
                        }else{
                                goto cleanup;
                        }