From a733d3565dd2a5cfbf4f30cbd3358341f03299fa Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 21 May 2013 07:09:06 -0500 Subject: [PATCH] Fix adding blank lines to chat --- js/client-chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client-chat.js b/js/client-chat.js index 052e6c607..d497d0bd3 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -590,7 +590,7 @@ }, addRow: function(line) { var name, name2, room, action, silent, oldid; - if (typeof line === 'string') { + if (line && typeof line === 'string') { if (line.substr(0,1) !== '|') line = '||'+line; var row = line.substr(1).split('|'); switch (row[0]) {