refactor: minor tweaks
This commit is contained in:
parent
c4454fe217
commit
9ce4a7aa1f
@ -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()
|
||||
|
@ -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}");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user