refactor: minor tweaks

This commit is contained in:
Ryan 2025-03-06 17:59:42 -05:00
parent c4454fe217
commit 9ce4a7aa1f
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ impl CommandSource {
self.state.lua.globals().get::<Function>("ncr_encrypt"),
) && let Ok(encrypted) = encrypt.call::<String>((options, prepend_header(&chunk)))
{
chunk = encrypted
chunk = encrypted;
}
self.client.chat(
&(if self.message.is_whisper()

View File

@ -36,7 +36,7 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow:
&& let Ok(trimmed) = trim_header(&decrypted)
{
ncr_options = Some(options);
content = trimmed.to_owned();
trimmed.clone_into(&mut content);
info!("Decrypted message from {sender}: {content}");
}