From f60c78abfbd5f279b30de729046b805bba8e00b0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Apr 2018 20:14:21 +0300 Subject: Proto_GetStatus is used everywhere instead of PS_GETSTATUS --- plugins/MyDetails/src/data.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/MyDetails/src') diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index a536eaea5d..8dda970f0a 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -93,14 +93,11 @@ bool Protocol::IsValid() int Protocol::GetStatus() { - INT_PTR iStatus = CallProtoService(name, PS_GETSTATUS, 0, 0); - if (iStatus == CALLSERVICE_NOTFOUND) - return status = ID_STATUS_OFFLINE; - + int iStatus = Proto_GetStatus(name); if (iStatus != status) data_changed = true; - status = (int)iStatus; + status = iStatus; // check if protocol supports custom status CUSTOM_STATUS css = { sizeof(css) }; -- cgit v1.2.3