This commit is contained in:
Armin 2026-11-27 00:10:52 +01:00
commit 643c6df5ef
4 changed files with 2360 additions and 0 deletions

27
.gitignore vendored Normal file
View file

@ -0,0 +1,27 @@
# Build artifacts
/irc9
*.o
*.a
*.so
*.d
*.dSYM/
# Local configuration (use irc9rc-example as the template)
/irc9rc
/config
# Editor and IDE files
*~
*.swp
*.swo
.idea/
.vscode/
# OS junk
.DS_Store
Thumbs.db
# Debugging leftovers
core
core.*
*.log

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
CC ?= cc
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -pthread $(shell pkg-config --cflags ncurses 2>/dev/null)
LDLIBS ?= -pthread $(shell pkg-config --libs ncurses 2>/dev/null || echo -lncurses)
HAVE_OPENSSL := $(shell pkg-config --exists openssl && echo yes)
ifeq ($(HAVE_OPENSSL),yes)
CFLAGS += -DUSE_OPENSSL $(shell pkg-config --cflags openssl)
LDLIBS += $(shell pkg-config --libs openssl)
endif
irc9: irc9.c
$(CC) $(CFLAGS) -D_DARWIN_C_SOURCE -o $@ $< $(LDLIBS)
clean:
rm -f irc9
.PHONY: clean

2295
irc9.c Normal file

File diff suppressed because it is too large Load diff

21
irc9rc-example Normal file
View file

@ -0,0 +1,21 @@
# irc9 config: keywords and arguments, one line each.
# Comments are whole lines starting with '#'.
nick armin
user armin
real Armin
# strip_formatting off # default on; off renders IRC bold/color/etc.
# Libera and OFTC use TLS on 6697. Use port 6667 without the ssl keyword for
# plain TCP. The optional sasl line applies to the server above it; the SASL
# user is your account name.
server irc.libera.chat 6697 ssl
# sasl armin my-sasl-password
server irc.oftc.net 6697 ssl
# sasl armin my-sasl-password
# channel lines are accepted for compatibility but ignored. Join manually.
# channel #linux
# channel #c
# channel #irc9