aboutsummaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp10
1 files changed, 10 insertions, 0 deletions
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<message> command::message() const
return wanda::message{"C", command, argument_string};
}
+std::optional<command> make_command(message message)
+{
+ if(message.command == "CHANGE")
+ {
+ return {{command_id::change}};
+ }
+
+ return std::nullopt;
+}
+
} // namespace wanda \ No newline at end of file