From 5b9a118c3a2a3f421b0a8a2d69b3a85c2c7b27b2 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sun, 6 Oct 2024 18:15:01 -0600 Subject: Implement delete --- src/system/message_parser.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system/message_parser.rs') 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, -- cgit 1.4.1