diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-01 01:03:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-01 01:03:44 +0300 |
commit | 368931eb3af8153f8bba5cae9ff89ad57bb4a1b7 (patch) | |
tree | ca4fedc38e32ec4053215e5d0e45c6940a9a343c /src/actions/commands.cpp | |
parent | eb694307c2b73e64f208c0d37d4c79207018d07a (diff) | |
download | mv-368931eb3af8153f8bba5cae9ff89ad57bb4a1b7.tar.gz mv-368931eb3af8153f8bba5cae9ff89ad57bb4a1b7.tar.bz2 mv-368931eb3af8153f8bba5cae9ff89ad57bb4a1b7.tar.xz mv-368931eb3af8153f8bba5cae9ff89ad57bb4a1b7.zip |
Add chat command to set serverconfig variables.
New chat command: /servconfset varname value
Alias: /setservconf varname value
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 75d491f9e..e5ad161e3 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -922,4 +922,17 @@ impHandler(confSet) return false; } +impHandler(serverConfSet) +{ + std::string name; + std::string val; + + if (parse2Str(event.args, name, val)) + { + serverConfig.setValue(name, val); + return true; + } + return false; +} + } // namespace Actions |