Skip to content

Commit

Permalink
released at 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpcpc authored Feb 18, 2022
1 parent 5f8bab4 commit 851eed5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
6 changes: 2 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Usage
Consult `man kirc` for a full list and explanation of available arguments.

kirc [-s hostname] [-p port] [-c channels] [-n nickname] [-r realname]
[-u username] [-k password] [-a token] [-x command] [-o logfile]
[-e|v|V]
[-u username] [-k password] [-a token] [-o logfile] [-e|x|v|V]

Command Aliases
---------------
Expand All @@ -29,8 +28,7 @@ Command Aliases
@<channel|nick> <message> send PRIVMSG to a specified channel or nick.
@@<channel|nick> <message> send CTCP ACTION message to a specified channel or
nick (if no channel or nick is specified, the
message will be sent to the default channel.
the default channel).
message will be sent to the default channel).
/<command> send command to the IRC server (see RFC 2812).
/#<channel> assign new default message channel.

Expand Down
9 changes: 5 additions & 4 deletions kirc.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kirc \- KISS for IRC
.SH DESCRIPTION
.B kirc
is an extremely fast and simple IRC client designed with portability in mind.
This client reads from stdin and prints to stdout, so all traffic can
This client reads from STDIN and prints to STDOUT, so all traffic can
multiplexed and text parsed or modified using external commands. All highlighted
text and color can be controlled with ANSI escape sequences.
.SH OPTIONS
Expand All @@ -41,15 +41,16 @@ Specifies the USER connection username
.BI \-k " pass"
Specifies the PASS connection password
.TP
.BI \-x " command"
Specifies additional commands to send to the host after initial connection.
.TP
.BI \-a " auth"
Specifies SASL PLAIN mechanism authentication token
.TP
.BI \-e
Specifies SASL EXTERNAL mechanism
.TP
.BI \-x
Reads from STDIN and passes each line (delimited by "\\n") as a command to the IRC
server after the initial connection.
.TP
.BI \-v
Prints the version information to stderr, then exits
.TP
Expand Down
6 changes: 3 additions & 3 deletions kirc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <sys/ioctl.h>

#define CTCP_CMDS "ACTION VERSION TIME CLIENTINFO PING"
#define VERSION "0.3.0"
#define VERSION "0.3.1"
#define MSG_MAX 512
#define CHA_MAX 200
#define NIC_MAX 26
Expand Down Expand Up @@ -916,12 +916,12 @@ static void handleUserInput(struct State *l) {

static void usage(void) {
fputs("kirc [-s host] [-p port] [-c channel] [-n nick] [-r realname] \
[-u username] [-k password] [-a token] [-x command] [-o path] [-e] [-v] [-V]\n", stderr);
[-u username] [-k password] [-a token] [-o path] [-e] [-x] [-v] [-V]\n", stderr);
exit(2);
}

static void version(void) {
fputs("kirc-" VERSION " Copyright © 2021 Michael Czigler, MIT License\n",
fputs("kirc-" VERSION " Copyright © 2022 Michael Czigler, MIT License\n",
stdout);
exit(0);
}
Expand Down

0 comments on commit 851eed5

Please sign in to comment.