forked from Tr0n/client
Removed mobile/SMS from messenger
This commit is contained in:
@ -1446,24 +1446,6 @@ bool CPythonNetworkStream::SendWhisperPacket(const char * name, const char * c_s
|
||||
return SendSequence();
|
||||
}
|
||||
|
||||
bool CPythonNetworkStream::SendMobileMessagePacket(const char * name, const char * c_szChat)
|
||||
{
|
||||
int iTextLen = strlen(c_szChat) + 1;
|
||||
TPacketCGSMS SMSPacket;
|
||||
SMSPacket.bHeader = HEADER_CG_SMS;
|
||||
SMSPacket.wSize = sizeof(SMSPacket) + iTextLen;
|
||||
|
||||
strncpy(SMSPacket.szNameTo, name, sizeof(SMSPacket.szNameTo) - 1);
|
||||
|
||||
if (!Send(sizeof(SMSPacket), &SMSPacket))
|
||||
return false;
|
||||
|
||||
if (!Send(iTextLen, c_szChat))
|
||||
return false;
|
||||
|
||||
return SendSequence();
|
||||
}
|
||||
|
||||
bool CPythonNetworkStream::RecvPointChange()
|
||||
{
|
||||
TPacketGCPointChange PointChange;
|
||||
@ -2756,9 +2738,6 @@ bool CPythonNetworkStream::RecvMessenger()
|
||||
else
|
||||
CPythonMessenger::Instance().OnFriendLogout(char_name);
|
||||
|
||||
if (on.connected & MESSENGER_CONNECTED_STATE_MOBILE)
|
||||
CPythonMessenger::Instance().SetMobile(char_name, TRUE);
|
||||
|
||||
iSize -= sizeof(TPacketGCMessengerListOffline);
|
||||
iSize -= on.length;
|
||||
}
|
||||
@ -2789,21 +2768,6 @@ bool CPythonNetworkStream::RecvMessenger()
|
||||
CPythonMessenger::Instance().OnFriendLogout(char_name);
|
||||
break;
|
||||
}
|
||||
|
||||
case MESSENGER_SUBHEADER_GC_MOBILE:
|
||||
{
|
||||
BYTE byState; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD>
|
||||
BYTE byLength;
|
||||
if (!Recv(sizeof(byState), &byState))
|
||||
return false;
|
||||
if (!Recv(sizeof(byLength), &byLength))
|
||||
return false;
|
||||
if (!Recv(byLength, char_name))
|
||||
return false;
|
||||
char_name[byLength] = 0;
|
||||
CPythonMessenger::Instance().SetMobile(char_name, byState);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user