From 2563c1da7d24a0674d68827b03ba6f4765a1f9fb Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 13 May 2024 22:52:40 +0500 Subject: upd: renamed "delete" to "remove" because its sql keyword --- src/modules/custom_command.hpp | 4 ++-- src/modules/timer.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/custom_command.hpp b/src/modules/custom_command.hpp index 0757a20..50b3692 100644 --- a/src/modules/custom_command.hpp +++ b/src/modules/custom_command.hpp @@ -18,7 +18,7 @@ namespace bot { } std::vector get_subcommand_ids() const override { - return {"new", "delete"}; + return {"new", "remove"}; } std::variant, std::string> run( @@ -72,7 +72,7 @@ namespace bot { .get_formatted_line(request, loc::LineId::CustomcommandNew, {name}) .value(); - } else if (subcommand_id == "delete") { + } else if (subcommand_id == "remove") { if (cmds.empty()) { throw ResponseException( request, bundle.localization, name); diff --git a/src/modules/timer.hpp b/src/modules/timer.hpp index 03e319e..36c3982 100644 --- a/src/modules/timer.hpp +++ b/src/modules/timer.hpp @@ -18,7 +18,7 @@ namespace bot { } std::vector get_subcommand_ids() const override { - return {"new", "delete"}; + return {"new", "remove"}; } std::variant, std::string> run( @@ -89,7 +89,7 @@ namespace bot { return bundle.localization .get_formatted_line(request, loc::LineId::TimerNew, {name}) .value(); - } else if (subcommand_id == "delete") { + } else if (subcommand_id == "remove") { if (timers.empty()) { throw ResponseException( request, bundle.localization, name); -- cgit v1.2.3