summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-08-12 18:56:09 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-08-12 18:56:09 +0000
commite530b1be3a65296d2324b2299897367ee14d4a3d (patch)
tree12a5f019b133bebf61a26f76b4841075f6162ebd /protocols/Tox/src/tox_proto.cpp
parent9c4e02916ad863a7fdd95d2668f29714997d61c5 (diff)
Tox: contact status message support
git-svn-id: http://svn.miranda-ng.org/main/trunk@14926 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, 10 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index aff83a2db3..b31d83f894 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -210,7 +210,16 @@ int CToxProto::SetStatus(int iNewStatus)
return 0;
}
-HANDLE CToxProto::GetAwayMsg(MCONTACT) { return 0; }
+HANDLE CToxProto::GetAwayMsg(MCONTACT hContact)
+{
+ if (IsOnline())
+ {
+ ForkThread(&CToxProto::GetStatusMessageAsync, (void*)hContact);
+ return (HANDLE)hContact;
+ }
+
+ return 0;
+}
int CToxProto::SetAwayMsg(int, const TCHAR *msg)
{