summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/AdvancedAutoAway
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-02 13:50:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-02 13:50:02 +0300
commitcfca10ee7adbf42b70183aedfe5bd16f7b09b44f (patch)
tree21f300279611a628c7de2b7ad216cc4e13add204 /plugins/StatusManager/src/AdvancedAutoAway
parenta7a6991d945a508d0f21ab34fd2f76ca15b95248 (diff)
fixes #1132 (KeepStatus doesn't work)
Diffstat (limited to 'plugins/StatusManager/src/AdvancedAutoAway')
-rw-r--r--plugins/StatusManager/src/AdvancedAutoAway/advancedautoaway.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/StatusManager/src/AdvancedAutoAway/advancedautoaway.cpp b/plugins/StatusManager/src/AdvancedAutoAway/advancedautoaway.cpp
index 64eb4c3f30..6e63df6d32 100644
--- a/plugins/StatusManager/src/AdvancedAutoAway/advancedautoaway.cpp
+++ b/plugins/StatusManager/src/AdvancedAutoAway/advancedautoaway.cpp
@@ -310,7 +310,7 @@ static VOID CALLBACK AutoAwayTimer(HWND, UINT, UINT_PTR, DWORD)
/* SET_ORGSTATUS to ACTIVE */
aas.m_lastStatus = CallProtoService(aas.m_szName, PS_GETSTATUS, 0, 0);
aas.m_status = aas.originalStatusMode;
- confirm = (aas.optionFlags&FLAG_CONFIRM) ? TRUE : confirm;
+ confirm = (aas.optionFlags & FLAG_CONFIRM) ? TRUE : confirm;
aas.statusChanged = statusChanged = TRUE;
changeState(aas, ACTIVE);
aas.sts1setTimer = 0;
@@ -319,7 +319,7 @@ static VOID CALLBACK AutoAwayTimer(HWND, UINT, UINT_PTR, DWORD)
}
if (confirm || statusChanged) {
- TProtoSettings ps(protoList);
+ TProtoSettings ps = protoList;
for (int i = 0; i < ps.getCount(); i++)
if (ps[i].m_status == ID_STATUS_DISABLED)
ps[i].m_szName = "";