From 9ebf291e927660eac233f0d882c086cfbfa51a63 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 18 May 2015 19:29:38 +0000 Subject: SkypeWeb: added mapping of global statuses git-svn-id: http://svn.miranda-ng.org/main/trunk@13683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb') 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 +} -- cgit v1.2.3