diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-10-05 18:02:12 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-10-05 18:02:12 -0600 |
commit | ca4b0e32be531053f19ce2895b994130b247af4a (patch) | |
tree | bdfef248c6917109b6a768bed9733b0999ae0e2f /src/system/message_parser.rs | |
parent | 4fa4907c3da23249ddec2bcb50e48f708152059e (diff) |
Add sent-message cache for looking up command targets
Diffstat (limited to 'src/system/message_parser.rs')
-rw-r--r-- | src/system/message_parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/system/message_parser.rs b/src/system/message_parser.rs index b404064..01bfaee 100644 --- a/src/system/message_parser.rs +++ b/src/system/message_parser.rs @@ -36,7 +36,7 @@ static CORRECTION_REGEX: LazyLock<Regex> = LazyLock::new(|| { }); impl MessageParser { - pub fn parse(message: &FullMessage, secondary_message: Option<&FullMessage>, system_config: &System, latch_state: Option<(MemberId, Timestamp)>) -> ParsedMessage { + pub fn parse(message: &FullMessage, secondary_message: Option<FullMessage>, system_config: &System, latch_state: Option<(MemberId, Timestamp)>) -> ParsedMessage { if message.content == r"\\" { return ParsedMessage::LatchClear(if let Some((member_id, _)) = latch_state { member_id @@ -73,13 +73,13 @@ impl MessageParser { ParsedMessage::UnproxiedMessage } - fn parse_command(message: &FullMessage, secondary_message: Option<&FullMessage>, system_config: &System, latch_state: Option<(MemberId, Timestamp)>) -> Command { + fn parse_command(message: &FullMessage, secondary_message: Option<FullMessage>, system_config: &System, latch_state: Option<(MemberId, Timestamp)>) -> Command { // If unable to parse Command::UnknownCommand } - fn check_correction(message: &FullMessage, secondary_message: Option<&FullMessage>) -> Option<ParsedMessage> { + fn check_correction(message: &FullMessage, secondary_message: Option<FullMessage>) -> Option<ParsedMessage> { None } |