diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 12 |
1 files changed, 12 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 |