diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-18 20:28:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-18 20:28:53 +0300 |
commit | bdad617254c066569de2f64e072615fe8d2c94ef (patch) | |
tree | c8b4c2aae982b397338b0593d2bb0bdf07a37a10 /plugins | |
parent | dab14b038f1969182eaf5997c4c1e28166030f5e (diff) |
KeepStatus: fix for initial status assignment
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index 148f62a9ff..7f12d2dfeb 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -93,9 +93,7 @@ TKSSettings::TKSSettings(PROTOACCOUNT *pa) m_szName = pa->szModuleName; m_tszAccName = pa->tszAccountName; m_szMsg = nullptr; - - int iStatus = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0); - AssignStatus(iStatus, iStatus, nullptr); + m_status = m_lastStatus = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0); } TKSSettings::~TKSSettings() |