summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r--protocols/Tox/src/tox_proto.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 1a22017a6a..a3dac57a20 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -48,10 +48,6 @@ CToxProto::CToxProto(const char* protoName, const TCHAR* userName) :
CreateProtoService(PS_SETMYNICKNAME, &CToxProto::SetMyNickname);
- // chat rooms
- //CreateProtoService(PS_JOINCHAT, &CToxProto::OnJoinChatRoom);
- //CreateProtoService(PS_LEAVECHAT, &CToxProto::OnLeaveChatRoom);
-
// transfers
transfers = new CTransferList();
}
@@ -176,13 +172,18 @@ int __cdecl CToxProto::RecvFile(MCONTACT hContact, PROTOFILEEVENT *pre)
int __cdecl CToxProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre)
{
- return Proto_RecvMessage(hContact, pre);
+ return OnReceiveMessage(hContact, pre);
}
int __cdecl CToxProto::RecvUrl(MCONTACT, PROTORECVEVENT*) { return 0; }
int __cdecl CToxProto::SendContacts(MCONTACT, int, int, MCONTACT*) { return 0; }
+int CToxProto::SendMsg(MCONTACT hContact, int flags, const char *msg)
+{
+ return OnSendMessage(hContact, flags, msg);
+}
+
int __cdecl CToxProto::SendUrl(MCONTACT, int, const char*) { return 0; }
int __cdecl CToxProto::SetApparentMode(MCONTACT, int) { return 0; }