Basic support for new protocol

This commit is contained in:
Guangcong Luo
2013-04-27 19:14:49 -07:00
committed by Cathy J. Fitzpatrick
parent 79ff72b9db
commit 11523fe03a

View File

@@ -126,6 +126,10 @@
if (line.substr(0,1) !== '|') line = '||'+line;
var row = line.substr(1).split('|');
switch (row[0]) {
case 'init':
// ignore (handled elsewhere)
break;
case 'c':
case 'chat':
this.addChat(row[1], row.slice(2).join('|'));