summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-11 16:10:49 -0400
committerJune McEnroe <june@causal.agency>2018-09-11 16:10:49 -0400
commit3d9f808a600e33a444f8dd666a4e379c282e388b (patch)
treef15eb940bcafafa46bd84a63a3020bab3e49c562
parentDon't render every PM as a ping (diff)
downloadcatgirl-3d9f808a600e33a444f8dd666a4e379c282e388b.tar.gz
catgirl-3d9f808a600e33a444f8dd666a4e379c282e388b.zip
Add /help equivalent to /man
-rw-r--r--chatte.18
-rw-r--r--input.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/chatte.1 b/chatte.1
index 980b152..fb9e2ac 100644
--- a/chatte.1
+++ b/chatte.1
@@ -97,6 +97,10 @@ Close the current view.
 All views after the current one
 are renumbered.
 .
+.It Ic /help
+Equivalent to
+.Ic /man .
+.
 .It Ic /join Ar chan
 Join a channel.
 .
@@ -349,9 +353,7 @@ usually the client IP address.
 .El
 .
 .Sh EXAMPLES
-.Bd -literal -offset indent
-chatte -h ascii.town -j '&chatte'
-.Ed
+.Dl chatte -h ascii.town -j '&chatte'
 .
 .Sh STANDARDS
 .Rs
diff --git a/input.c b/input.c
index 4497010..25e8a0d 100644
--- a/input.c
+++ b/input.c
@@ -152,6 +152,7 @@ static const struct {
 	Handler handler;
 } Commands[] = {
 	{ "/close", inputClose },
+	{ "/help", inputMan },
 	{ "/join", inputJoin },
 	{ "/man", inputMan },
 	{ "/me", inputMe },