summary refs log tree commit diff
path: root/src/system/message_parser.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-10-06 18:15:01 -0600
committerAshelyn Rose <git@ashen.earth>2024-10-06 18:15:01 -0600
commit5b9a118c3a2a3f421b0a8a2d69b3a85c2c7b27b2 (patch)
tree16749f34c3fc7ce8cd69f46b9d396a82f0dd18a9 /src/system/message_parser.rs
parent27d7107a127f3ff513b6281d94e22ce6ff781115 (diff)
Implement delete
Diffstat (limited to 'src/system/message_parser.rs')
-rw-r--r--src/system/message_parser.rs4
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,