mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Basic support for new protocol
This commit is contained in:
committed by
Cathy J. Fitzpatrick
parent
79ff72b9db
commit
11523fe03a
@@ -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('|'));
|
||||
|
||||
Reference in New Issue
Block a user