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:19 +0100
commit70e337eaa8e523d74e3b3757ac6972a72b8e44cc (patch)
treeebeda7804a9c81f4a1c2097b7ecf19bca85229f5 /kopete/protocols/oscar/liboscar/serverversionstask.cpp
parentf59b2e28c7ab8707750e56a140023af08d42390e (diff)
downloadtdenetwork-70e337eaa8e523d74e3b3757ac6972a72b8e44cc.tar.gz
tdenetwork-70e337eaa8e523d74e3b3757ac6972a72b8e44cc.zip
kopete: Remove the AIM specific code from liboscar
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 036b0229dba794cf6267b522ac1f6449b6708d51)
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);