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/serverversionstask.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/serverversionstask.cpp')
-rw-r--r-- | kopete/protocols/oscar/liboscar/serverversionstask.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/kopete/protocols/oscar/liboscar/serverversionstask.cpp b/kopete/protocols/oscar/liboscar/serverversionstask.cpp index 7d001ec3..336f3b02 100644 --- a/kopete/protocols/oscar/liboscar/serverversionstask.cpp +++ b/kopete/protocols/oscar/liboscar/serverversionstask.cpp @@ -115,6 +115,7 @@ void ServerVersionsTask::handleFamilies() void ServerVersionsTask::requestFamilyVersions() { + bool isIcq = client()->isIcq(); int listLength = m_familiesList.count(); FLAP f = { 0x02, 0, 0 }; @@ -124,18 +125,22 @@ void ServerVersionsTask::requestFamilyVersions() kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "SEND SNAC 0x01, 0x17 - Snac family versions we want" << endl; - for ( int i = 0; i < listLength; i++ ) { + for ( int i = 0; i < listLength; i++ ) + { outbuf->addWord( m_familiesList[i] ); - if ( m_familiesList[i] == 0x0001 ) { + if ( m_familiesList[i] == 0x0001 ) val = 0x0003; - } - else { - if ( m_familiesList[i] == 0x0013 ) { - val = 0x0004; // for ICQ2002 + else + { + if ( m_familiesList[i] == 0x0013 ) + { + if ( isIcq ) + val = 0x0004; // for ICQ2002 + else + val = 0x0003; } - else { + else val = 0x0001; - } } outbuf->addWord(val); |