summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-25 22:07:05 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-25 22:07:05 +0000
commitdb8c860f22d93d04fbe35bcb50e812c269cb2ea7 (patch)
tree4d54d27dae4cba5fa0517f8b529abd817dffb338 /protocols/Tox/src/tox_proto.cpp
parent49b90802d624e53129e51dfce1d78d2ef28ed68c (diff)
Tox: messages refactoring pt 2
git-svn-id: http://svn.miranda-ng.org/main/trunk@12268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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; }