summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/serverversionstask.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-12-30 16:04:07 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-12-30 16:04:07 +0100
commit036b0229dba794cf6267b522ac1f6449b6708d51 (patch)
treec502374e6e8e85b9e200df4bbe91e61a1ba4278b /kopete/protocols/oscar/liboscar/serverversionstask.cpp
parentdc34f9c39105b0fe20ba45c064a08406084acbe2 (diff)
downloadtdenetwork-036b0229.tar.gz
tdenetwork-036b0229.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/serverversionstask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/serverversionstask.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/kopete/protocols/oscar/liboscar/serverversionstask.cpp b/kopete/protocols/oscar/liboscar/serverversionstask.cpp
index 336f3b02..7d001ec3 100644
--- a/kopete/protocols/oscar/liboscar/serverversionstask.cpp
+++ b/kopete/protocols/oscar/liboscar/serverversionstask.cpp
@@ -115,7 +115,6 @@ void ServerVersionsTask::handleFamilies()
void ServerVersionsTask::requestFamilyVersions()
{
- bool isIcq = client()->isIcq();
int listLength = m_familiesList.count();
FLAP f = { 0x02, 0, 0 };
@@ -125,22 +124,18 @@ 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 )
- {
- if ( isIcq )
- val = 0x0004; // for ICQ2002
- else
- val = 0x0003;
+ }
+ else {
+ if ( m_familiesList[i] == 0x0013 ) {
+ val = 0x0004; // for ICQ2002
}
- else
+ else {
val = 0x0001;
+ }
}
outbuf->addWord(val);