aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-06-23 19:17:16 +0200
committerMax Audron <audron@cocaine.farm>2021-06-23 19:18:10 +0200
commitf83d7ddf9b3514c7e1a5f7d39f1788fef1d0542d (patch)
treea77f32efe8168b8186dc6bb84fa371e5320843d2 /src/main.rs
parentadd required metadata for publishing to macros crate (diff)
rewrite sed regex to work cross channel
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 21a1ba1..dc128cd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,6 +9,8 @@ async fn main() {
.with_thread_ids(true)
.init();
+ let mut sed = catinator::hooks::sed::Sed::new();
+
catinator![
hook(
"sasl",
@@ -20,7 +22,7 @@ async fn main() {
"sed_log",
"Log messages for use with sed replace, max 10k lines.",
PRIVMSG,
- catinator::hooks::sed::log
+ sed.log
),
matcher(
"shifty_eyes",
@@ -32,7 +34,7 @@ async fn main() {
"replace",
"sed style replace with regex support. i/g/U/x sed flags available",
r"^s/",
- catinator::hooks::sed::replace
+ sed.replace
),
matcher(
"intensify",