summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions/commands.cpp12
-rw-r--r--src/actions/commands.h1
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h5
4 files changed, 19 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index e5ad161e3..d56995745 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -935,4 +935,16 @@ impHandler(serverConfSet)
return false;
}
+impHandler(confGet)
+{
+ const std::string args = event.args;
+ if (args.empty())
+ return false;
+
+ const std::string str = strprintf(_("Config value: %s"),
+ config.getStringValue(args).c_str());
+ outStringNormal(event.tab, str, str);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index d97d73663..9a6d1df3c 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -87,6 +87,7 @@ namespace Actions
decHandler(leaveChatRoom);
decHandler(confSet);
decHandler(serverConfSet);
+ decHandler(confGet);
} // namespace Actions
#undef decHandler
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