aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LICENSE2
-rw-r--r--README7
-rw-r--r--kirc.19
-rw-r--r--kirc.c4
4 files changed, 16 insertions, 6 deletions
diff --git a/LICENSE b/LICENSE
index d0bb7d9..2051c81 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2021 Michael Czigler
+Copyright (c) 2021-2022 Michael Czigler
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README b/README
index 6a9cbc4..1508151 100644
--- a/README
+++ b/README
@@ -26,8 +26,11 @@ Command Aliases
---------------
<message> send PRIVMSG to the current channel.
- @<channel|nick> <message> send message to a specified channel or nick.
- @@<channel|nick> <message> send CTCP ACTION message to a specified channel or nick.
+ @<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).
/<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 323cebd..246127b 100644
--- a/kirc.1
+++ b/kirc.1
@@ -75,13 +75,20 @@ to specified
or
.I <nick>
.TP
-.BI @@<channel|nick>
+.BI @@<channel|nick> " <message>"
Send CTCP ACTION containing
.I <message>
to specified
.I <channel>
or
.I <nick>
+(if no
+.I <channel>
+or
+.I <nick>
+is specified, the
+.I <message>
+will be sent to the default message channel)
.SH AUTHOR
Michael Czigler <michaelczigler at icloud dot com>
.SH BUGS
diff --git a/kirc.c b/kirc.c
index d69860a..6f1f943 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.2.9"
+#define VERSION "0.3.0"
#define MSG_MAX 512
#define CHA_MAX 200
#define NIC_MAX 26
@@ -917,7 +917,7 @@ static void usage(void) {
}
static void version(void) {
- fputs("kirc-" VERSION "Copyright © 2021 Michael Czigler, MIT License\n",
+ fputs("kirc-" VERSION " Copyright © 2021 Michael Czigler, MIT License\n",
stdout);
exit(0);
}