From 1fc1d8dc4bd6b57541424597db01cacc9890b686 Mon Sep 17 00:00:00 2001 From: zefie Date: Wed, 18 Jun 2025 15:20:21 -0400 Subject: [PATCH] improve MOTD some more --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index b3c8144c..906eb26d 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -4130,8 +4130,11 @@ class WTVIRC { if (typeof this.irc_motd === 'string' && this.irc_motd.length > 0) { output_lines.push(`:${this.servername} 372 ${nickname} :${this.irc_motd}\r\n`); } else if (Array.isArray(this.irc_motd) && this.irc_motd.length > 0) { - for (const line of this.irc_motd) { - output_lines.push(`:${this.servername} 372 ${nickname} :${line}\r\n`); + for (var line of this.irc_motd) { + if (line === '') { + line = '-'; + } + output_lines.push(`:${this.servername} 372 ${nickname} :- ${line}\r\n`); } } else { output_lines.push(`:${this.servername} 372 ${nickname} :No message of the day is set\r\n`);