mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Trim MOTD to avoid empty line at the end
This commit is contained in:
parent
f7449c565f
commit
fa993c29d5
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue