summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MyDetails/src/data.cpp')
-rw-r--r--plugins/MyDetails/src/data.cpp7
1 files changed, 2 insertions, 5 deletions
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) };