diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-10-06 18:15:01 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-10-06 18:15:01 -0600 |
commit | 5b9a118c3a2a3f421b0a8a2d69b3a85c2c7b27b2 (patch) | |
tree | 16749f34c3fc7ce8cd69f46b9d396a82f0dd18a9 /src/system/message_parser.rs | |
parent | 27d7107a127f3ff513b6281d94e22ce6ff781115 (diff) |
Implement delete
Diffstat (limited to 'src/system/message_parser.rs')
-rw-r--r-- | src/system/message_parser.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system/message_parser.rs b/src/system/message_parser.rs index 5d14095..59bfb7f 100644 --- a/src/system/message_parser.rs +++ b/src/system/message_parser.rs @@ -26,6 +26,7 @@ pub enum ParsedMessage { pub enum Command { Edit(MemberId, MessageId, String), Reproxy(MemberId, MessageId), + Delete(MessageId), Nick(MemberId, String), ReloadSystemConfig, ExitSéance, @@ -97,6 +98,9 @@ impl MessageParser { return Command::Reproxy(member, secondary_message.unwrap().id); } }, + "delete" => { + return Command::Delete(secondary_message.unwrap().id); + } _ => (), }, None => return Command::UnknownCommand, |