From 0c820b86891e2f1870d2830c0f3987c8840c15a8 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Mon, 7 Aug 2023 18:18:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only channels --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 572b4c9..b12ec30 100644 --- a/main.c +++ b/main.c @@ -28,7 +28,7 @@ char *GetFilename(void) { } void WriteToFile(void) { - if (client.msg[1] == '.') + if (client.msg[1] == '.' || client.channel[0] != '#') return; char *filename = GetFilename();