aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-26 12:05:23 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-26 12:06:34 +0200
commit36c2918c9980a343a50921e9f3443f39db82b7a2 (patch)
tree3a2e256eba84f02776556a3832d5ff8d421b67d9
parent1efd8ab1b4d4a2b1c8236aee33f51d960964c20b (diff)
downloadn_core-36c2918c9980a343a50921e9f3443f39db82b7a2.tar.gz
n_core-36c2918c9980a343a50921e9f3443f39db82b7a2.zip
better move?
-rw-r--r--include/Handler.hpp4
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 {