From 9ec3c7e78e560356066b272ad7a38d3d333de1b5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 May 2018 14:57:51 +0300 Subject: global variable name standardization --- plugins/CmdLine/src/mimcmd_handlers.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/CmdLine/src') diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp index f7ed632c9d..8a0a2eaa9f 100644 --- a/plugins/CmdLine/src/mimcmd_handlers.cpp +++ b/plugins/CmdLine/src/mimcmd_handlers.cpp @@ -483,7 +483,7 @@ void HandleClistCommand(PCommand command, TArgument *argv, int argc, PReply repl switch (argc) { case 2: { - int state = IsWindowVisible(g_CLI.hwndContactList); + int state = IsWindowVisible(g_clistApi.hwndContactList); Set2StateReply(reply, state, 0, LPGENW("Contact list is currently shown."), L"", LPGENW("Contact list is currently hidden."), L""); return; @@ -495,18 +495,18 @@ void HandleClistCommand(PCommand command, TArgument *argv, int argc, PReply repl switch (Get2StateValue(argv[2])) { case STATE_ON: - ShowWindow(g_CLI.hwndContactList, SW_SHOW); + ShowWindow(g_clistApi.hwndContactList, SW_SHOW); state = TRUE; break; case STATE_OFF: - ShowWindow(g_CLI.hwndContactList, SW_HIDE); + ShowWindow(g_clistApi.hwndContactList, SW_HIDE); state = FALSE; break; case STATE_TOGGLE: - state = !IsWindowVisible(g_CLI.hwndContactList); - ShowWindow(g_CLI.hwndContactList, (state) ? SW_SHOW : SW_HIDE); + state = !IsWindowVisible(g_clistApi.hwndContactList); + ShowWindow(g_clistApi.hwndContactList, (state) ? SW_SHOW : SW_HIDE); break; default: @@ -531,7 +531,7 @@ void HandleQuitCommand(PCommand command, TArgument *argv, int argc, PReply reply CallService("CloseAction", 0, 0); // try another quit method - PostMessage(g_CLI.hwndContactList, WM_COMMAND, ID_ICQ_EXIT, 0); + PostMessage(g_clistApi.hwndContactList, WM_COMMAND, ID_ICQ_EXIT, 0); reply->code = MIMRES_SUCCESS; mir_snwprintf(reply->message, TranslateT("Issued a quit command.")); @@ -548,7 +548,7 @@ void HandleQuitCommand(PCommand command, TArgument *argv, int argc, PReply reply CallService("CloseAction", 0, 0); //try another quit method - PostMessage(g_CLI.hwndContactList, WM_COMMAND, ID_ICQ_EXIT, 0); + PostMessage(g_clistApi.hwndContactList, WM_COMMAND, ID_ICQ_EXIT, 0); reply->code = MIMRES_SUCCESS; mir_snwprintf(reply->message, TranslateT("Issued a quit and wait command.")); -- cgit v1.2.3