From e258d5a64d837681fbb870943c8a191d7ffd626c Mon Sep 17 00:00:00 2001 From: David Phillips Date: Fri, 14 Jul 2017 19:21:07 +1200 Subject: Strip formatting in idalius.pl once instead of each module --- plugin/tittilate.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugin/tittilate.pm') diff --git a/plugin/tittilate.pm b/plugin/tittilate.pm index b7994c3..d9d8a49 100644 --- a/plugin/tittilate.pm +++ b/plugin/tittilate.pm @@ -4,7 +4,6 @@ package plugin::tittilate; use strict; use warnings; -use IRC::Utils qw(strip_color strip_formatting); my %config; @@ -16,8 +15,7 @@ sub configure { } sub message { - my ($self, $me, $who, $where, $what) = @_; - $what = strip_color(strip_formatting($what)); + my ($self, $me, $who, $where, $raw_what, $what) = @_; my $gathered = ""; my @expressions = (keys %{$config{triggers}}); my $expression = join '|', @expressions; -- cgit v1.1