From 7a6170b42556a9af96354cb5a94d0cdb9e2dcca7 Mon Sep 17 00:00:00 2001 From: Eugene Lishnevsky Date: Thu, 26 Jul 2012 05:08:11 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@1186 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/data.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/MyDetails') diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 58ca261e68..2067277cd0 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -126,11 +126,14 @@ int Protocol::GetStatus() if (old_status != status) data_changed = true; - // check if custom status is set + // check if protocol supports custom status if (ProtoServiceExists(name, PS_ICQ_GETCUSTOMSTATUS)) + // check if custom status is set custom_status = CallProtoService(name, PS_ICQ_GETCUSTOMSTATUS, (WPARAM) &custom_status_name, (LPARAM) &custom_status_message); + else + custom_status = 0; - // if custom status is not set (custom_status will be -1), show normal status + // if protocol supports custom status, but it is not set (custom_status will be -1), show normal status if (custom_status < 0) custom_status = 0; if (custom_status == 0) { -- cgit v1.2.3