diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Handler.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Handler.hpp b/include/Handler.hpp index 3328d91..b84315d 100644 --- a/include/Handler.hpp +++ b/include/Handler.hpp @@ -22,10 +22,12 @@ namespace Handler { } CommandHandler(CommandHandler &&o) noexcept { - func = o.func; + command = std::move(o.command); + func = std::move(o.func); description = o.description; o.description = nullptr; payload = o.payload; + o.payload = nullptr; } [[nodiscard]] json exec(std::string const &arguments, std::string const &session) const { |