Trim MOTD to avoid empty line at the end
This commit is contained in:
parent
f7449c565f
commit
fa993c29d5
@ -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 New Issue
Block a user