diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 19:59:51 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 19:59:51 +0100 |
| commit | 63ec195c36dc331cd77df721d45449a642e8a546 (patch) | |
| tree | f9fc76c1965b35258825959935b1112f34077918 /src/command.cpp | |
| parent | 56e57082a7e543155fcf583d146f4e130456ca73 (diff) | |
| download | wanda-63ec195c36dc331cd77df721d45449a642e8a546.tar.xz wanda-63ec195c36dc331cd77df721d45449a642e8a546.zip | |
wandad: implement command handler for change
Diffstat (limited to 'src/command.cpp')
| -rw-r--r-- | src/command.cpp | 10 |
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 |
