diff options
Diffstat (limited to 'bot/src/localization')
| -rw-r--r-- | bot/src/localization/line_id.cpp | 10 | ||||
| -rw-r--r-- | bot/src/localization/line_id.hpp | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/bot/src/localization/line_id.cpp b/bot/src/localization/line_id.cpp index dabd85a..7f17378 100644 --- a/bot/src/localization/line_id.cpp +++ b/bot/src/localization/line_id.cpp @@ -96,6 +96,16 @@ namespace bot { return LineId::ChattersResponse; } + else if (str == "set.locale") { + return LineId::SetLocale; + } else if (str == "set.prefix") { + return LineId::SetPrefix; + } else if (str == "set.feature.disabled") { + return LineId::SetFeatureDisabled; + } else if (str == "set.feature.enabled") { + return LineId::SetFeatureEnabled; + } + else { return std::nullopt; } diff --git a/bot/src/localization/line_id.hpp b/bot/src/localization/line_id.hpp index 6d7729e..e9b90c0 100644 --- a/bot/src/localization/line_id.hpp +++ b/bot/src/localization/line_id.hpp @@ -50,7 +50,12 @@ namespace bot { HelpResponse, - ChattersResponse + ChattersResponse, + + SetLocale, + SetPrefix, + SetFeatureDisabled, + SetFeatureEnabled }; std::optional<LineId> string_to_line_id(const std::string &str); |
