summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp13
-rw-r--r--src/actions/commands.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index c74c2397a..75d491f9e 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -909,4 +909,17 @@ impHandler0(leaveChatRoom)
#endif
}
+impHandler(confSet)
+{
+ std::string name;
+ std::string val;
+
+ if (parse2Str(event.args, name, val))
+ {
+ config.setValue(name, val);
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index da3574a62..e2360ad8f 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -85,6 +85,7 @@ namespace Actions
decHandler(createPublicChatRoom);
decHandler(joinChatRoom);
decHandler(leaveChatRoom);
+ decHandler(confSet);
} // namespace Actions
#undef decHandler