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/CmdLine/src/mimcmd_data.h | 2 +- plugins/CmdLine/src/mimcmd_handlers.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/CmdLine/src') diff --git a/plugins/CmdLine/src/mimcmd_data.h b/plugins/CmdLine/src/mimcmd_data.h index 9351596ef9..2d22334a87 100644 --- a/plugins/CmdLine/src/mimcmd_data.h +++ b/plugins/CmdLine/src/mimcmd_data.h @@ -89,7 +89,7 @@ typedef TSharedData *PSharedData; #define MIMCMD_IGNORE 19 #define MIMCMD_LUA 20 -#define MIMCMD_HELP_STATUS LPGENW("Changes account status either globally or per account.\nUsage: status [].\nPossible values for are: offline, online, away, dnd, na, occupied, invisible.\n is an optional parameter specifying the account to set the status for. If it's not specified then the command will issue a global status change.") +#define MIMCMD_HELP_STATUS LPGENW("Changes account status either globally or per account.\nUsage: status [].\nPossible values for are: offline, online, away, dnd, na, occupied, freechat, invisible.\n is an optional parameter specifying the account to set the status for. If it's not specified then the command will issue a global status change.") #define MIMCMD_HELP_AWAYMSG LPGENW("Changes away message either globally or per account.\nUsage: awaymsg [].\n is the new away message.\n is an optional parameter specifying the account to set the away message for. If not specified then the away message will be set globally.") #define MIMCMD_HELP_XSTATUS LPGENW("Changes extended status either globally or per account.\nUsage: xstatus [].\n is the new extended status to set. Possible values are: ...\n is an optional parameter specifying the account for which extended status is set. If not specified then extended status for all accounts will be changed.\nNOTE: Not all accounts/protocols support extended status.") #define MIMCMD_HELP_POPUPS LPGENW("Disables or enables popups display.\nUsage: popups (disable | enable | toggle).\nThe command will either enable or disable popups display.") diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp index c871496362..89f1fb131e 100644 --- a/plugins/CmdLine/src/mimcmd_handlers.cpp +++ b/plugins/CmdLine/src/mimcmd_handlers.cpp @@ -166,6 +166,8 @@ int ParseStatusParam(const wchar_t *status) return ID_STATUS_NA; if (!mir_wstrcmp(lower, L"occupied")) return ID_STATUS_OCCUPIED; + if (!mir_wstrcmp(lower, L"freechat")) + return ID_STATUS_FREECHAT; if (!mir_wstrcmp(lower, L"invisible")) return ID_STATUS_INVISIBLE; return 0; -- cgit v1.2.3