diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-12-30 16:04:07 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-12-30 16:04:07 +0100 |
commit | 036b0229dba794cf6267b522ac1f6449b6708d51 (patch) | |
tree | c502374e6e8e85b9e200df4bbe91e61a1ba4278b /kopete/protocols/oscar/liboscar/clientreadytask.cpp | |
parent | dc34f9c39105b0fe20ba45c064a08406084acbe2 (diff) | |
download | tdenetwork-036b0229dba794cf6267b522ac1f6449b6708d51.tar.gz tdenetwork-036b0229dba794cf6267b522ac1f6449b6708d51.zip |
kopete: Remove the AIM specific code from liboscar
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, 9 insertions, 26 deletions
diff --git a/kopete/protocols/oscar/liboscar/clientreadytask.cpp b/kopete/protocols/oscar/liboscar/clientreadytask.cpp index 3025a0d8..6d1b07a7 100644 --- a/kopete/protocols/oscar/liboscar/clientreadytask.cpp +++ b/kopete/protocols/oscar/liboscar/clientreadytask.cpp @@ -64,38 +64,21 @@ void ClientReadyTask::onGo() buffer->addWord( 0x0003 ); break; case 0x0013: - buffer->addWord( client()->isIcq() ? 0x0002 : 0x0003 ); + buffer->addWord( 0x0002 ); break; default: buffer->addWord( 0x0001 ); }; - - if ( client()->isIcq() ) - { - if ( i == 0x0002 ) - buffer->addWord( 0x0101 ); - else - buffer->addWord( 0x0110 ); - - //always add 0x047B - buffer->addWord( 0x047B ); + + if ( i == 0x0002 ) { + buffer->addWord( 0x0101 ); } - 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; - }; + else { + buffer->addWord( 0x0110 ); } + + //always add 0x047B + buffer->addWord( 0x047B ); } //send the damn thing so we can finally be finished |