summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/StatusManager/src/ks_main.cpp4
-rw-r--r--src/mir_app/src/clc.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/StatusManager/src/ks_main.cpp b/plugins/StatusManager/src/ks_main.cpp
index fd8000a662..561af26ac2 100644
--- a/plugins/StatusManager/src/ks_main.cpp
+++ b/plugins/StatusManager/src/ks_main.cpp
@@ -900,9 +900,9 @@ static int ProcessPopup(int reason, LPARAM lParam)
if (hIcon == nullptr)
hIcon = Skin_LoadIcon(SKINICON_STATUS_OFFLINE);
- Netlib_Logf(0, "KeepStatus: %s", wszText.c_str());
+ Netlib_LogfW(0, L"KeepStatus: %s", wszText.c_str());
return ShowPopup(wszText, hIcon);
-}
+}
LRESULT CALLBACK KSPopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp
index c7b122980f..6b8fadb013 100644
--- a/src/mir_app/src/clc.cpp
+++ b/src/mir_app/src/clc.cpp
@@ -119,7 +119,7 @@ static int ClcProtoAck(WPARAM, LPARAM lParam)
if (ack->type == ACKTYPE_STATUS) {
if (ack->result == ACKRESULT_SUCCESS) {
PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
- if (pa)
+ if (pa && ack->lParam != ID_STATUS_IDLE)
pa->iRealStatus = ack->lParam;
}