From 63ec195c36dc331cd77df721d45449a642e8a546 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 1 Dec 2018 19:59:51 +0100 Subject: wandad: implement command handler for change --- src/command.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index 092d69d..05784b3 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -30,4 +30,14 @@ std::optional command::message() const return wanda::message{"C", command, argument_string}; } +std::optional make_command(message message) +{ + if(message.command == "CHANGE") + { + return {{command_id::change}}; + } + + return std::nullopt; +} + } // namespace wanda \ No newline at end of file -- cgit v1.2.3