about summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2025-10-28 20:13:48 -0400
committerJune McEnroe <june@causal.agency>2025-10-28 20:13:48 -0400
commiteb82baab2571dc46e70b0c0d9ec6069a506bedd5 (patch)
treea6382f60d75f17c2af37be52e54e1d1de67c9e95 /command.c
parentAdd a testimonial (diff)
downloadcatgirl-eb82baab2571dc46e70b0c0d9ec6069a506bedd5.tar.gz
catgirl-eb82baab2571dc46e70b0c0d9ec6069a506bedd5.zip
Add /motd command
You've gotta be able to see the fun colour charts again.
Diffstat (limited to 'command.c')
-rw-r--r--command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/command.c b/command.c
index 9b2b4eb..35e1d63 100644
--- a/command.c
+++ b/command.c
@@ -361,6 +361,13 @@ static void commandUninvex(uint id, char *params) {
 	channelListMode(id, '-', network.invex, params);
 }
 
+static void commandMOTD(uint id, char *params) {
+	(void)id;
+	(void)params;
+	ircFormat("MOTD\r\n");
+	replies[ReplyMOTD]++;
+}
+
 static void commandList(uint id, char *params) {
 	(void)id;
 	if (params) {
@@ -588,6 +595,7 @@ static const struct Handler {
 	{ "/list", commandList, 0, 0 },
 	{ "/me", commandMe, Multiline, 0 },
 	{ "/mode", commandMode, 0, 0 },
+	{ "/motd", commandMOTD, 0, 0 },
 	{ "/move", commandMove, 0, 0 },
 	{ "/msg", commandMsg, Multiline, 0 },
 	{ "/names", commandNames, 0, 0 },