diff options
| author | June McEnroe <june@causal.agency> | 2025-10-28 20:13:48 -0400 | 
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2025-10-28 20:13:48 -0400 | 
| commit | eb82baab2571dc46e70b0c0d9ec6069a506bedd5 (patch) | |
| tree | a6382f60d75f17c2af37be52e54e1d1de67c9e95 /command.c | |
| parent | Add a testimonial (diff) | |
| download | catgirl-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.c | 8 | 
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 },  |