aboutsummaryrefslogtreecommitdiff
path: root/plugin/tittilate.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-07-10 21:37:26 +1200
committerDavid Phillips <david@sighup.nz>2017-07-10 21:37:26 +1200
commit947c02157e300a7a1e3a5b2fc5c4ec96544d69e1 (patch)
tree8dcfec63cf0a0aec9fcc09baaaa5ee00ee4acb46 /plugin/tittilate.pm
parent0cf2d4e466282495cb33a8a48a1d70b96b07e6d5 (diff)
downloadidalius-947c02157e300a7a1e3a5b2fc5c4ec96544d69e1.tar.xz
Make url_title and tittilate colour- and formatting-blind
Diffstat (limited to 'plugin/tittilate.pm')
-rw-r--r--plugin/tittilate.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/tittilate.pm b/plugin/tittilate.pm
index a1ea7f3..b7994c3 100644
--- a/plugin/tittilate.pm
+++ b/plugin/tittilate.pm
@@ -4,6 +4,7 @@ package plugin::tittilate;
use strict;
use warnings;
+use IRC::Utils qw(strip_color strip_formatting);
my %config;
@@ -16,6 +17,7 @@ sub configure {
sub message {
my ($self, $me, $who, $where, $what) = @_;
+ $what = strip_color(strip_formatting($what));
my $gathered = "";
my @expressions = (keys %{$config{triggers}});
my $expression = join '|', @expressions;