[BREAKING CHANGES] - Add new commands module for the Friends list, add new events for friends online/offline, friend rights management, friend map lookup

This commit is contained in:
Casper Warden
2018-10-12 14:34:43 +01:00
parent 375abc433e
commit 2a0c4dc3e8
86 changed files with 1406 additions and 330 deletions

View File

@@ -36,6 +36,21 @@ export class IPAddress
{
this.ip = ipaddr.parse(buf);
}
else
{
throw new Error('Invalid IP address');
}
}
}
else
{
if (ipaddr.isValid(buf))
{
this.ip = ipaddr.parse(buf);
}
else
{
throw new Error('Invalid IP address');
}
}
}