diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-07 20:14:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-07 20:14:21 +0300 |
commit | f60c78abfbd5f279b30de729046b805bba8e00b0 (patch) | |
tree | 1120bba828b2151604e98163aa7a3fe221264068 /plugins/MyDetails/src/data.cpp | |
parent | 26a653ecae7edbeefb7966e08714e152c73b78eb (diff) |
Proto_GetStatus is used everywhere instead of PS_GETSTATUS
Diffstat (limited to 'plugins/MyDetails/src/data.cpp')
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 7 |
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) };
|