aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README6
-rw-r--r--kirc.19
-rw-r--r--kirc.c6
3 files changed, 10 insertions, 11 deletions
diff --git a/README b/README
index 1508151..049df92 100644
--- a/README
+++ b/README
@@ -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
---------------
@@ -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.
diff --git a/kirc.1 b/kirc.1
index 246127b..68ec92e 100644
--- a/kirc.1
+++ b/kirc.1
@@ -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
@@ -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
diff --git a/kirc.c b/kirc.c
index 8e7dfde..2501005 100644
--- a/kirc.c
+++ b/kirc.c
@@ -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
@@ -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);
}