From f83d7ddf9b3514c7e1a5f7d39f1788fef1d0542d Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 23 Jun 2021 19:17:16 +0200 Subject: rewrite sed regex to work cross channel --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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", -- cgit v1.2.3