about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-05 00:24:54 -0500
committerJune McEnroe <june@causal.agency>2020-02-05 00:24:54 -0500
commit37ec1e8232ab5aadd1989be1c7b518c98438cfd0 (patch)
tree235fac4e051d458d29ea3b71e75021bca0ddcbd2
parentAdd extremely basic editing and message sending (diff)
downloadtest-37ec1e8232ab5aadd1989be1c7b518c98438cfd0.tar.gz
test-37ec1e8232ab5aadd1989be1c7b518c98438cfd0.zip
Align MOTD after -
-rw-r--r--handle.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index 32f8939..b5585ba 100644
--- a/handle.c
+++ b/handle.c
@@ -176,8 +176,11 @@ static void handleReplyISupport(struct Message *msg) {
 static void handleReplyMOTD(struct Message *msg) {
 	require(msg, false, 2);
 	char *line = msg->params[1];
-	if (!strncmp(line, "- ", 2)) line += 2;
-	uiFormat(Network, Cold, tagTime(msg), "%s", line);
+	if (!strncmp(line, "- ", 2)) {
+		uiFormat(Network, Cold, tagTime(msg), "\3%d-\3\t%s", Gray, &line[2]);
+	} else {
+		uiFormat(Network, Cold, tagTime(msg), "%s", line);
+	}
 }
 
 static void handleJoin(struct Message *msg) {
td> 2012-01-22Update quicktaskJune McEnroe 2012-01-22Revert "Add AutoClose"June McEnroe 2012-01-22Revert "Disable powerline for now"June McEnroe 2012-01-22Revert "Add VCS repo directories to wildignore"June McEnroe 2012-01-22Disable powerline for nowJune McEnroe 2012-01-22Update some pluginsJune McEnroe 2012-01-22Add VCS repo directories to wildignoreJune McEnroe 2012-01-22Map ,e and ,b to CtrlP file and buffer respectivelyJune McEnroe 2012-01-22Add vim-spaceJune McEnroe 2012-01-22Add AutoCloseJune McEnroe 2012-01-22Add binding for GundoJune McEnroe 2012-01-22Add GundoJune McEnroe 2012-01-22Add Jellybeans colorschemeJune McEnroe 2012-01-22Add syntasticJune McEnroe 2012-01-21Add PowerlineJune McEnroe 2012-01-21Add quicktaskJune McEnroe 2012-01-15Moved comments out of mapsJune McEnroe 2012-01-14Disable scrollbarsJune McEnroe