diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-12-10 01:24:17 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-12-10 01:24:17 +0100 |
commit | 91ba38a1df42b56caa73babc90ffa4f674c000d4 (patch) | |
tree | cb65a7a13ac72de8a4ef610424da9195edca0a0c /kopete/protocols/oscar/liboscar/clientreadytask.cpp | |
parent | f2553c2ff47de1bcf060f22edd5c23d9cb653bc3 (diff) | |
download | tdenetwork-91ba38a1df42b56caa73babc90ffa4f674c000d4.tar.gz tdenetwork-91ba38a1df42b56caa73babc90ffa4f674c000d4.zip |
kopete: Restore the AIM protocol because a replacement AIM server was created.
This reverts commits 036b0229db and dc34f9c391.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kopete/protocols/oscar/liboscar/clientreadytask.cpp')
-rw-r--r-- | kopete/protocols/oscar/liboscar/clientreadytask.cpp | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/kopete/protocols/oscar/liboscar/clientreadytask.cpp b/kopete/protocols/oscar/liboscar/clientreadytask.cpp index 6d1b07a7..3025a0d8 100644 --- a/kopete/protocols/oscar/liboscar/clientreadytask.cpp +++ b/kopete/protocols/oscar/liboscar/clientreadytask.cpp @@ -64,21 +64,38 @@ void ClientReadyTask::onGo() buffer->addWord( 0x0003 ); break; case 0x0013: - buffer->addWord( 0x0002 ); + buffer->addWord( client()->isIcq() ? 0x0002 : 0x0003 ); break; default: buffer->addWord( 0x0001 ); }; - - if ( i == 0x0002 ) { - buffer->addWord( 0x0101 ); + + if ( client()->isIcq() ) + { + if ( i == 0x0002 ) + buffer->addWord( 0x0101 ); + else + buffer->addWord( 0x0110 ); + + //always add 0x047B + buffer->addWord( 0x047B ); } - else { - buffer->addWord( 0x0110 ); + else //we're AIM so AOL has us do something completely different! *sigh* + { + switch( i ) + { + case 0x0008: + case 0x000B: + case 0x000C: + buffer->addWord( 0x0104 ); + buffer->addWord( 0x0001 ); + break; + default: + buffer->addWord( 0x0110 ); + buffer->addWord( 0x059B ); + break; + }; } - - //always add 0x047B - buffer->addWord( 0x047B ); } //send the damn thing so we can finally be finished |