mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
More async conversion
This commit is contained in:
parent
484e99b29c
commit
efe12a00aa
25 changed files with 774 additions and 858 deletions
|
|
@ -68,7 +68,9 @@ class Quake2 extends Core {
|
|||
player.frags = parseInt(args.shift());
|
||||
player.ping = parseInt(args.shift());
|
||||
player.name = args.shift() || '';
|
||||
if (!player.name) delete player.name;
|
||||
player.address = args.shift() || '';
|
||||
if (!player.address) delete player.address;
|
||||
}
|
||||
|
||||
(player.ping ? state.players : state.bots).push(player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue