summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/profiletask.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/profiletask.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/profiletask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/profiletask.cpp40
1 files changed, 7 insertions, 33 deletions
diff --git a/kopete/protocols/oscar/liboscar/profiletask.cpp b/kopete/protocols/oscar/liboscar/profiletask.cpp
index 1544a5b4..4b2122a0 100644
--- a/kopete/protocols/oscar/liboscar/profiletask.cpp
+++ b/kopete/protocols/oscar/liboscar/profiletask.cpp
@@ -74,39 +74,13 @@ void ProfileTask::sendProfileUpdate()
Buffer *buffer = new Buffer();
Buffer capBuf;
- if ( !m_profileText.isNull() && !client()->isIcq() )
- {
- static const TQString defencoding = "text/aolrtf; charset=\"us-ascii\"";
- buffer->addTLV(0x0001, defencoding.length(), defencoding.latin1());
- buffer->addTLV(0x0002, m_profileText.length(), m_profileText.local8Bit());
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "setting profile = " << m_profileText << endl;
- }
-
- if ( !m_awayMessage.isNull() && !client()->isIcq() )
- {
- static const TQString defencoding = "text/aolrtf; charset=\"us-ascii\"";
- buffer->addTLV(0x0003, defencoding.length(), defencoding.latin1());
- buffer->addTLV(0x0004, m_awayMessage.length(), m_awayMessage.local8Bit());
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "setting away message = " << m_awayMessage << endl;
- }
-
- if ( client()->isIcq() )
- {
- capBuf.addString( oscar_caps[CAP_ICQSERVERRELAY], 16 ); // we support type-2 messages
- capBuf.addString( oscar_caps[CAP_UTF8], 16 ); // we can send/receive UTF encoded messages
- capBuf.addString( oscar_caps[CAP_ISICQ], 16 ); // I think this is an icq client, but maybe I'm wrong
- capBuf.addString( oscar_caps[CAP_KOPETE], 16 ); // we are the borg, resistance is futile
- //capBuf.addString( oscar_caps[CAP_RTFMSGS], 16 ); // we do incoming RTF messages
- capBuf.addString( oscar_caps[CAP_TYPING], 16 ); // we know you're typing something to us!
- capBuf.addString( oscar_caps[CAP_BUDDYICON], 16 ); //can you take my picture?
- }
- else
- {
- capBuf.addString( oscar_caps[CAP_UTF8], 16 ); //we can send/receive UTF encoded messages
- capBuf.addString( oscar_caps[CAP_KOPETE], 16 ); // we are the borg, resistance is futile
- capBuf.addString( oscar_caps[CAP_TYPING], 16 ); // we know you're typing something to us!
- capBuf.addString( oscar_caps[CAP_BUDDYICON], 16 ); //can you take my picture?
- }
+ capBuf.addString( oscar_caps[CAP_ICQSERVERRELAY], 16 ); // we support type-2 messages
+ capBuf.addString( oscar_caps[CAP_UTF8], 16 ); // we can send/receive UTF encoded messages
+ capBuf.addString( oscar_caps[CAP_ISICQ], 16 ); // I think this is an icq client, but maybe I'm wrong
+ capBuf.addString( oscar_caps[CAP_KOPETE], 16 ); // we are the borg, resistance is futile
+ //capBuf.addString( oscar_caps[CAP_RTFMSGS], 16 ); // we do incoming RTF messages
+ capBuf.addString( oscar_caps[CAP_TYPING], 16 ); // we know you're typing something to us!
+ capBuf.addString( oscar_caps[CAP_BUDDYICON], 16 ); //can you take my picture?
//kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "adding capabilities, size=" << capBuf.length() << endl;
buffer->addTLV(0x0005, capBuf.length(), capBuf.buffer());