summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-18 19:29:38 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-18 19:29:38 +0000
commit9ebf291e927660eac233f0d882c086cfbfa51a63 (patch)
tree673ce31d01e6baba68c0b65f57c1921cb1c51690 /protocols/SkypeWeb
parentc12830cc2e7a2ee578fb75bf8f195446d7a1e58f (diff)
SkypeWeb: added mapping of global statuses
git-svn-id: http://svn.miranda-ng.org/main/trunk@13683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 01ef74b482..da6b72e525 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -196,6 +196,23 @@ int CSkypeProto::SetStatus(int iNewStatus)
if (iNewStatus == m_iDesiredStatus)
return 0;
+ switch (iNewStatus)
+ {
+ case ID_STATUS_FREECHAT:
+ case ID_STATUS_ONTHEPHONE:
+ iNewStatus = ID_STATUS_ONLINE;
+ break;
+
+ case ID_STATUS_NA:
+ case ID_STATUS_OUTTOLUNCH:
+ iNewStatus = ID_STATUS_AWAY;
+ break;
+
+ case ID_STATUS_OCCUPIED:
+ iNewStatus = ID_STATUS_DND;
+ break;
+ }
+
debugLogA(__FUNCTION__ ": changing status from %i to %i", m_iStatus, iNewStatus);
int old_status = m_iStatus;
@@ -295,4 +312,4 @@ int CSkypeProto::OnPreShutdown(WPARAM, LPARAM)
requestQueue->Stop();
return 0;
-} \ No newline at end of file
+}