Align MOTD after -

weechat-hashes
C. McEnroe 2020-02-05 00:24:54 -05:00
parent 4cce893eab
commit 37ec1e8232
1 changed files with 5 additions and 2 deletions

View File

@ -176,9 +176,12 @@ 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;
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) {
require(msg, true, 1);