mirror of
https://github.com/amigan/aim-oscar-server.git
synced 2024-11-21 20:19:47 -05:00
send real list of services
This commit is contained in:
parent
f20f524af0
commit
4880c42647
1 changed files with 9 additions and 6 deletions
|
@ -72,11 +72,14 @@ class Communicator {
|
|||
|
||||
switch (tlv.type) {
|
||||
case 0x06: // Requesting available services
|
||||
const resp = new FLAP(2, this._getNewSequenceNumber(), new SNAC(0x01, 0x03, FLAGS_EMPTY, 0, [
|
||||
Buffer.from([0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04,
|
||||
0x00, 0x06, 0x00, 0x08, 0x00, 0x09, 0x00, 0x0A,
|
||||
0x00, 0x0B, 0x00, 0x0C, 0x00, 0x13, 0x00, 0x15,
|
||||
]), // Buddy List management service
|
||||
// this is just a dword list of service families
|
||||
const servicesOffered = [];
|
||||
Object.values(this.services).forEach((service) => {
|
||||
servicesOffered.push(Buffer.from([0x00, service.family]));
|
||||
});
|
||||
const resp = new FLAP(2, this._getNewSequenceNumber(),
|
||||
new SNAC(0x01, 0x03, FLAGS_EMPTY, 0, [
|
||||
Buffer.concat(servicesOffered),
|
||||
]));
|
||||
this.send(resp);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue