init
This commit is contained in:
parent
d6a5dafd03
commit
643c6df5ef
4 changed files with 2360 additions and 0 deletions
27
.gitignore
vendored
Normal file
27
.gitignore
vendored
Normal 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
17
Makefile
Normal 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
|
||||
21
irc9rc-example
Normal file
21
irc9rc-example
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue