summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-12 18:28:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-12 18:28:50 +0000
commit4330c62d2fa5b2752036b43018044c7c01b10695 (patch)
tree41001600877a55ad94ab03f9ccbbe3fab56585ad /protocols/Tox/src/tox_proto.cpp
parentc1fdf24779e15d5a1063340b35a4f7b2e3bf9d6a (diff)
Tox: contact name, status, status message saving
git-svn-id: http://svn.miranda-ng.org/main/trunk@10167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r--protocols/Tox/src/tox_proto.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 676039ce76..ee4c60b917 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -22,6 +22,8 @@ CToxProto::CToxProto(const char* protoName, const TCHAR* userName) :
CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit);
+ SetAllContactsStatus(ID_STATUS_OFFLINE);
+
hMessageProcess = 1;
}
@@ -143,6 +145,11 @@ int __cdecl CToxProto::SetStatus(int iNewStatus)
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+ if (!Miranda_Terminated())
+ {
+ SetAllContactsStatus(ID_STATUS_OFFLINE);
+ }
+
return 0;
}
else