From fa993c29d599e238577b76996129b9ad78e8c093 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 13 Feb 2018 12:38:33 +0200 Subject: [PATCH] Trim MOTD to avoid empty line at the end --- src/plugins/irc-events/motd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/motd.js b/src/plugins/irc-events/motd.js index 03743d92..001bbf1a 100644 --- a/src/plugins/irc-events/motd.js +++ b/src/plugins/irc-events/motd.js @@ -9,7 +9,7 @@ module.exports = function(irc, network) { const lobby = network.channels[0]; if (data.motd) { - data.motd.split("\n").forEach((text) => { + data.motd.trim().split("\n").forEach((text) => { const msg = new Msg({ type: Msg.Type.MOTD, text: text,