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]) {