From 376c2bbac63f1cb73a6eb619c6be49f1e896b9dd Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 11 Sep 2024 10:17:32 +0000 Subject: [PATCH] fix git-svn-id: file:///raid/svn-personal/okuu/trunk@10 7d206d2a-66c2-044b-96de-ba755a9b3ba8 --- Bot/news.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.43.0