[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:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user