diff options
Diffstat (limited to 'kopete/protocols/oscar/liboscar/serverversionstask.cpp')
-rw-r--r-- | kopete/protocols/oscar/liboscar/serverversionstask.cpp | 21 |
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); |