From: Nishi Date: Wed, 11 Sep 2024 10:17:32 +0000 (+0000) Subject: fix X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=376c2bbac63f1cb73a6eb619c6be49f1e896b9dd;p=okuu.git fix git-svn-id: file:///raid/svn-personal/okuu/trunk@10 7d206d2a-66c2-044b-96de-ba755a9b3ba8 --- diff --git a/Bot/news.c b/Bot/news.c index e9d9ea5..7a92547 100644 --- a/Bot/news.c +++ b/Bot/news.c @@ -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; }