summaryrefslogtreecommitdiff
path: root/plugins/MyDetails
diff options
context:
space:
mode:
authorEugene Lishnevsky <elishnevsky@gmail.com>2012-07-26 03:28:35 +0000
committerEugene Lishnevsky <elishnevsky@gmail.com>2012-07-26 03:28:35 +0000
commitb740a0e587c4c87da21783ff8cb5d2b2f031803a (patch)
tree1f095c24e0001464d29eacac2e3b173737d1b245 /plugins/MyDetails
parentf9179681f381087090d51d4b613a6e506ed6c203 (diff)
Fixed the fix from last commit :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r--plugins/MyDetails/src/data.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 0191a6b806..58ca261e68 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -126,10 +126,12 @@ int Protocol::GetStatus()
if (old_status != status)
data_changed = true;
+ // check if custom status is set
if (ProtoServiceExists(name, PS_ICQ_GETCUSTOMSTATUS))
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 (custom_status < 0) custom_status = 0;
if (custom_status == 0) {
TCHAR *tmp = (TCHAR*) CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, status, GSMDF_TCHAR);