diff options
author | Michael Czigler <37268479+mcpcpc@users.noreply.github.com> | 2022-02-17 21:44:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 21:44:29 -0500 |
commit | 851eed53dd3f251c6d85bd43325ccbe658f39a4d (patch) | |
tree | 9e500dd23cf5d1dd5b8a35c1a1316a8ffb69ae52 | |
parent | Allow the option of parsing multiple post-connection commands. (#125) (diff) | |
download | kirc-851eed53dd3f251c6d85bd43325ccbe658f39a4d.tar.gz kirc-851eed53dd3f251c6d85bd43325ccbe658f39a4d.tar.bz2 kirc-851eed53dd3f251c6d85bd43325ccbe658f39a4d.tar.xz kirc-851eed53dd3f251c6d85bd43325ccbe658f39a4d.tar.zst kirc-851eed53dd3f251c6d85bd43325ccbe658f39a4d.zip |
released at 0.3.1
Diffstat (limited to '')
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | kirc.1 | 9 | ||||
-rw-r--r-- | kirc.c | 6 |
3 files changed, 10 insertions, 11 deletions
@@ -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. @@ -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 @@ -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); } |