diff options
Diffstat (limited to 'protocols/ICQCorp/src')
-rw-r--r-- | protocols/ICQCorp/src/protocol.cpp | 75 | ||||
-rw-r--r-- | protocols/ICQCorp/src/protocol.h | 2 | ||||
-rw-r--r-- | protocols/ICQCorp/src/services.cpp | 29 |
3 files changed, 0 insertions, 106 deletions
diff --git a/protocols/ICQCorp/src/protocol.cpp b/protocols/ICQCorp/src/protocol.cpp index bdbf79bce3..cb24b1ddf4 100644 --- a/protocols/ICQCorp/src/protocol.cpp +++ b/protocols/ICQCorp/src/protocol.cpp @@ -1151,81 +1151,6 @@ void ICQ::updateContactList() ///////////////////////////////////////////////////////////////////////////////
-void ICQ::sendVisibleList()
-{
- /*
- unsigned int i, numUsers = 0;
- ICQUser *u;
-
- if (statusVal != ID_STATUS_INVISIBLE) return;
-
- Packet userPacket;
- userPacket << ICQ_VERSION
- << ICQ_CMDxSND_VISxLIST
- << sequenceVal
- << sequenceVal
- << uin
- << (unsigned int)0x00;
-
- for (i=0; i<icqUsers.size(); i++)
- {
- u = icqUsers[i];
- if (u->statusVal != ID_STATUS_OFFLINE && g_plugin.getWord(u->hContact, "ApparentMode") == ID_STATUS_ONLINE)
- numUsers++;
- }
-
- if (numUsers == 0) return;
- userPacket << (char)numUsers;
-
- for (i=0; i<icqUsers.size(); i++)
- {
- u = icqUsers[i];
- if (u->statusVal != ID_STATUS_OFFLINE && g_plugin.getWord(u->hContact, "ApparentMode") == ID_STATUS_ONLINE)
- userPacket << icqUsers[i]->uin;
- }
-
- Netlib_Logf(hNetlibUser, "[udp] sending visible list (%d)\n", sequenceVal);
- sendICQ(udpSocket, userPacket, ICQ_CMDxSND_VISxLIST, sequenceVal);
- */
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
-void ICQ::sendInvisibleList()
-{
- /*
- unsigned int i, numUsers = 0;
-
- Packet userPacket;
- userPacket << ICQ_VERSION
- << ICQ_CMDxSND_INVISxLIST
- << sequenceVal
- << sequenceVal
- << uin
- << (unsigned int)0x00;
-
- for (i=0; i<icqUsers.size(); i++)
- {
- if (g_plugin.getWord(icqUsers[i]->hContact, "ApparentMode") == ID_STATUS_OFFLINE)
- numUsers++;
- }
-
- if (numUsers == 0) return;
- userPacket << (char)numUsers;
-
- for (i=0; i<icqUsers.size(); i++)
- {
- if (g_plugin.getWord(icqUsers[i]->hContact, "ApparentMode") == ID_STATUS_OFFLINE)
- userPacket << icqUsers[i]->uin;
- }
-
- Netlib_Logf(hNetlibUser, "[udp] sending invisible list (%d)\n", sequenceVal);
- sendICQ(udpSocket, userPacket, ICQ_CMDxSND_INVISxLIST, sequenceVal);
- */
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
void ICQ::updateUserList(ICQUser* /*u*/, char /*list*/, char /*add*/)
{
/*
diff --git a/protocols/ICQCorp/src/protocol.h b/protocols/ICQCorp/src/protocol.h index 4e23d7781c..ef1adf9ad6 100644 --- a/protocols/ICQCorp/src/protocol.h +++ b/protocols/ICQCorp/src/protocol.h @@ -165,8 +165,6 @@ public: void requestSystemMsg();
void requestBroadcastMsg();
void updateContactList();
- void sendVisibleList();
- void sendInvisibleList();
void updateUserList(ICQUser *u, char list, char add);
void processSystemMessage(Packet &packet, unsigned long checkUin, unsigned short newCommand, time_t timeSent);
void ackSYS(unsigned int timeStamp);
diff --git a/protocols/ICQCorp/src/services.cpp b/protocols/ICQCorp/src/services.cpp index 253dfb3e42..90a79b090f 100644 --- a/protocols/ICQCorp/src/services.cpp +++ b/protocols/ICQCorp/src/services.cpp @@ -392,34 +392,6 @@ static INT_PTR icqFileResume(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////
-static INT_PTR icqSetApparentMode(WPARAM, LPARAM)
-{
- /*
- CCSDATA *ccs = (CCSDATA *)lParam;
- int oldMode, newMode = ccs->wParam;
- ICQUser *u;
-
- u = icq.getUserByContact(ccs->hContact);
- if (u == NULL) return 1;
-
- oldMode = db_get_w(u->hContact, ICQCORP_PROTONAME, "ApparentMode", 0);
- if (newMode == oldMode) return 1;
-
- Netlib_Logf(hNetlibUser, "[ ] set apparent mode\n");
-
- if (newMode == ID_STATUS_ONLINE || newMode == ID_STATUS_OFFLINE) db_set_w(u->hContact, ICQCORP_PROTONAME, "ApparentMode", (uint16_t)newMode);
- else db_unset(u->hContact, ICQCORP_PROTONAME, "ApparentMode");
-
- if (icq.statusVal <= ID_STATUS_OFFLINE) return 0;
-
- if (oldMode != 0) icq.updateUserList(u, oldMode == ID_STATUS_OFFLINE ? 1 : 2, 0);
- if (newMode != 0) icq.updateUserList(u, newMode == ID_STATUS_OFFLINE ? 1 : 2, 1);
- */
- return 0;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
static int icqContactDeleted(WPARAM hContact, LPARAM)
{
Netlib_Logf(hNetlibUser, "[ ] contact deleted\n");
@@ -469,7 +441,6 @@ int LoadServices() CreateProtoServiceFunction(protoName, PSS_FILEALLOW, icqFileAllow);
CreateProtoServiceFunction(protoName, PSS_FILEDENY, icqFileDeny);
CreateProtoServiceFunction(protoName, PSS_FILECANCEL, icqFileCancel);
- CreateProtoServiceFunction(protoName, PSS_SETAPPARENTMODE, icqSetApparentMode);
CreateProtoServiceFunction(protoName, PSR_MESSAGE, icqRecvMessage);
CreateProtoServiceFunction(protoName, PSR_AWAYMSG, icqRecvAwayMsg);
|