mirror of
https://github.com/amigan/aim-oscar-server.git
synced 2024-11-22 04:29: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) {
|
switch (tlv.type) {
|
||||||
case 0x06: // Requesting available services
|
case 0x06: // Requesting available services
|
||||||
const resp = new FLAP(2, this._getNewSequenceNumber(), new SNAC(0x01, 0x03, FLAGS_EMPTY, 0, [
|
// this is just a dword list of service families
|
||||||
Buffer.from([0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04,
|
const servicesOffered = [];
|
||||||
0x00, 0x06, 0x00, 0x08, 0x00, 0x09, 0x00, 0x0A,
|
Object.values(this.services).forEach((service) => {
|
||||||
0x00, 0x0B, 0x00, 0x0C, 0x00, 0x13, 0x00, 0x15,
|
servicesOffered.push(Buffer.from([0x00, service.family]));
|
||||||
]), // Buddy List management service
|
});
|
||||||
|
const resp = new FLAP(2, this._getNewSequenceNumber(),
|
||||||
|
new SNAC(0x01, 0x03, FLAGS_EMPTY, 0, [
|
||||||
|
Buffer.concat(servicesOffered),
|
||||||
]));
|
]));
|
||||||
this.send(resp);
|
this.send(resp);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue