diff options
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, |