Skip to content

Commit 0f70e02

Browse files
stefan11111emekoi
andauthored
Merge changes I made in the last year (#136)
Co-authored-by: Emeka Nkurumeh <[email protected]>
1 parent 3bb2b8d commit 0f70e02

File tree

5 files changed

+838
-424
lines changed

5 files changed

+838
-424
lines changed

Makefile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
.POSIX:
22
ALL_WARNING = -Wall -Wextra -pedantic
3-
ALL_LDFLAGS = $(LDFLAGS)
4-
PREFIX = /usr/local
5-
LDLIBS = -lm
3+
PREFIX ?= /usr/local
64
BINDIR = $(PREFIX)/bin
75
MANDIR = $(PREFIX)/share/man
86

9-
all: clean kirc
10-
install: all
7+
all: kirc.c kirc.h
8+
$(CC) $(CFLAGS) $(LDFLAGS) kirc.c -o kirc
9+
10+
install: kirc
1111
mkdir -p $(DESTDIR)$(BINDIR)
1212
mkdir -p $(DESTDIR)$(MANDIR)/man1
1313
cp -f kirc $(DESTDIR)$(BINDIR)
1414
cp -f kirc.1 $(DESTDIR)$(MANDIR)/man1
1515
chmod 755 $(DESTDIR)$(BINDIR)/kirc
1616
chmod 644 $(DESTDIR)$(MANDIR)/man1/kirc.1
17-
kirc: kirc.o
18-
$(CC) $(ALL_LDFLAGS) -o kirc kirc.o $(LDLIBS)
19-
kirc.o: kirc.c kirc.h
2017
clean:
21-
rm -f kirc *.o
18+
rm -f kirc
2219
uninstall:
2320
rm -f $(DESTDIR)$(BINDIR)/kirc
2421
rm -f $(DESTDIR)$(MANDIR)/man1/kirc.1

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Consult `man kirc` for a full list and explanation of available arguments.
1818
kirc [-s hostname] [-p port] [-c channels] [-n nickname] [-r realname]
1919
[-u username] [-k password] [-a token] [-o logfile] [-e|x|v|V]
2020

21+
## DCC
22+
DCC transfers are always accpeted without user interaction and downloaded to the current directory.
23+
2124
## Command Aliases
2225

2326
<message> send PRIVMSG to the current channel.

kirc.1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ received.
6363
.BI /<command>
6464
Send message to IRC host (e.g. /JOIN, /PART, /WHOIS, etc.)
6565
.TP
66+
.BI // " <text>"
67+
Send text to current channel (useful when sending '@' and '/', usually to bots)
68+
.TP
6669
.BI /#<channel>
6770
Set default message channel to <channel>
6871
.TP
@@ -77,7 +80,7 @@ to specified
7780
or
7881
.I <nick>
7982
.TP
80-
.BI @@<channel|nick> " <message>"
83+
.BI /action <channel|nick> " <message>"
8184
Send CTCP ACTION containing
8285
.I <message>
8386
to specified

0 commit comments

Comments
 (0)