From b078dfb78c89aea87cd422eae52694738e473cf3 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sun, 21 Jul 2019 19:59:18 +0300 Subject: Restore "Free for chat" status support (fixes #1963) --- plugins/SimpleAR/src/Main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SimpleAR/src/Main.cpp') diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp index d3c87a0104..d189657681 100644 --- a/plugins/SimpleAR/src/Main.cpp +++ b/plugins/SimpleAR/src/Main.cpp @@ -98,7 +98,7 @@ INT CheckDefaults(WPARAM, LPARAM) mir_free(ptszVal); for (int c = ID_STATUS_ONLINE; c < ID_STATUS_IDLE; c++) { - if (c == ID_STATUS_ONLINE || c == ID_STATUS_INVISIBLE) + if (c == ID_STATUS_ONLINE || c == ID_STATUS_FREECHAT || c == ID_STATUS_INVISIBLE) continue; else { char szStatus[6] = { 0 }; @@ -106,7 +106,7 @@ INT CheckDefaults(WPARAM, LPARAM) ptszVal = g_plugin.getWStringA(szStatus); if (ptszVal == nullptr) { wchar_t *ptszDefault; - if (c < ID_STATUS_OCCUPIED) + if (c < ID_STATUS_FREECHAT) // This mode does not have a preset message ptszDefault = ptszDefaultMsg[c - ID_STATUS_ONLINE - 1]; else @@ -131,11 +131,11 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent) { BOOL fEnabled = g_plugin.getByte(KEY_ENABLED, 1); if (!fEnabled || !hContact || !hDBEvent) - return FALSE; /// unspecifyed error + return FALSE; /// unspecified error char *pszProto = GetContactProto(hContact); int status = Proto_GetStatus(pszProto); - if (status == ID_STATUS_ONLINE || status == ID_STATUS_INVISIBLE) + if (status == ID_STATUS_ONLINE || status == ID_STATUS_FREECHAT || status == ID_STATUS_INVISIBLE) return FALSE; // detect size of msg -- cgit v1.2.3