From 0f25d9c48f75b270da3ec7c86b21f17877513f21 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 May 2015 01:21:39 +0300 Subject: Add chat command to show configuration variable in chat. New chat command: /confget varname Alias: /getconf varname --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f6e172244..ad34a254c 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -598,6 +598,7 @@ namespace InputAction WINDOW_MAIL, CONF_SET, SERVER_CONF_SET, + CONG_GET, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index e5ed5c5d1..653c83973 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4479,6 +4479,11 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "servconfset|setservconf", true}, + {"keyConfGet", + defaultAction(&Actions::confGet), + InputCondition::INGAME, + "confget|getconf", + true}, }; #undef defaultAction -- cgit v1.2.3-70-g09d2