This commit is contained in:
Your Name 2025-04-13 18:42:20 +03:00
parent 674a5db917
commit 570bff605f
3 changed files with 4 additions and 5 deletions

View File

@ -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

2
README
View File

@ -1,7 +1,7 @@
> irclibs
git.macaw.me/8nl/irclibs
md5 irc.c c43a8faf4ad199a30a1148b847867022
md5 irc.c e73f8f08b146dab24f70faa186107f57
md5 irc.h bd6a06cb02d75da9896233db6ea20cd8
> сборка

2
main.c
View File

@ -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;
}