From 570bff605f3c1557bff100091612f69ee71ff50b Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Sun, 13 Apr 2025 18:42:20 +0300
Subject: [PATCH] fixed

---
 Makefile | 5 ++---
 README   | 2 +-
 main.c   | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 1edf27d..06c2793 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
-CFLAGS?=-s -Os -pedantic -Wall -Wextra -Werror -DENABLE_SSL
-LDFLAGS=-lssl -lcrypto
+CFLAGS?= -s -Os -flto -pedantic -Wall
 CC?=cc
 all:
-	$(CC) *.c $(CFLAGS) $(LDFLAGS) -obot
+	$(CC) *.c $(CFLAGS) -obot
 
 clean:
 	rm irc.* bot
diff --git a/README b/README
index e7bcaa5..4eff062 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
 > irclibs
   git.macaw.me/8nl/irclibs
 
-  md5 irc.c c43a8faf4ad199a30a1148b847867022
+  md5 irc.c e73f8f08b146dab24f70faa186107f57
   md5 irc.h bd6a06cb02d75da9896233db6ea20cd8
 
 > сборка
diff --git a/main.c b/main.c
index ecbe720..2cbd671 100644
--- a/main.c
+++ b/main.c
@@ -53,7 +53,7 @@ char *GetFilename(void) {
 		die("localtime()");
 
 	static char filename[PATH_MAX + 1];
-	snprintf(filename, PATH_MAX, "%s_%d-%d-%d%s", ircbot.irc_channel + 1, tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year, cfg.ext);
+	snprintf(filename, PATH_MAX, "%s_%d-%d-%d%s", ircbot.irc_channel, tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year, cfg.ext);
 	return filename;
 }