Fix adding blank lines to chat

This commit is contained in:
Guangcong Luo
2013-05-21 07:09:06 -05:00
committed by Cathy J. Fitzpatrick
parent c00dcc8e23
commit a733d3565d

View File

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