]> Git repositories of Nishi - okuu.git/commitdiff
default to utf-8
authorNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 00:50:07 +0000 (00:50 +0000)
committerNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 00:50:07 +0000 (00:50 +0000)
git-svn-id: file:///raid/svn-personal/okuu/trunk@9 7d206d2a-66c2-044b-96de-ba755a9b3ba8

Bot/news.c

index fcfdfb1cba2e0b35ae655dda348a326b2991f744..e9d9ea5800929414936f3c2632b8edb8a836886d 100644 (file)
@@ -303,6 +303,8 @@ int ok_news_write(const char* nick, const char* message){
                                send(nt_sock, construct, strlen(construct), 0);
                                sprintf(construct, "Subject: [IRC] Message from %s\r\n", nick);
                                send(nt_sock, construct, strlen(construct), 0);
+                               sprintf(construct, "Content-Type: text/plain; charset=UTF-8\r\n", nick);
+                               send(nt_sock, construct, strlen(construct), 0);
                                send(nt_sock, "\r\n", 2, 0);
                                char c;
                                int i;