From 609b3c3d0a6ca76336e56fbf902ae602be4fc7c3 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 28 Apr 2013 17:10:00 -0500 Subject: [PATCH] Fix empty MOTD bug --- channel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/channel.js b/channel.js index 6e69000a..f1159182 100644 --- a/channel.js +++ b/channel.js @@ -1135,9 +1135,8 @@ Channel.prototype.tryUpdateMotd = function(user, data) { return; } - if(data.motd) { - this.updateMotd(data.motd); - } + data.motd = data.motd || ""; + this.updateMotd(data.motd); } /* REGION Chat */