diff options
| author | Max Audron <audron@cocaine.farm> | 2021-10-16 16:36:52 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-10-16 16:36:52 +0200 |
| commit | 3a79df9523429c0ee36825328455fff9dfb4669a (patch) | |
| tree | b646ab79e883860d97b01d682cca9f7ec8047a94 /src/hooks/intensify.rs | |
| parent | rework configuration to allow extensibility by hooks (diff) | |
format code
Diffstat (limited to 'src/hooks/intensify.rs')
| -rw-r--r-- | src/hooks/intensify.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/hooks/intensify.rs b/src/hooks/intensify.rs index 4c63598..8e8a817 100644 --- a/src/hooks/intensify.rs +++ b/src/hooks/intensify.rs @@ -1,4 +1,4 @@ -use anyhow::{Result, Context}; +use anyhow::{Context, Result}; use irc::client::prelude::*; use macros::privmsg; @@ -10,8 +10,13 @@ pub fn intensify(bot: &crate::Bot, msg: Message) -> Result<()> { let content = chars.as_str(); bot.send_privmsg( - msg.response_target().context("failed to get response target")?, - format!("\x02\x0304[\x1d{} INTENSIFIES\x1d]\x03\x0F", content.to_uppercase()).as_str(), + msg.response_target() + .context("failed to get response target")?, + format!( + "\x02\x0304[\x1d{} INTENSIFIES\x1d]\x03\x0F", + content.to_uppercase() + ) + .as_str(), )?; }) } |
