From 186cb12c229522bc49940129c710d877c36548cc Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 15 Oct 2018 13:16:58 +1300 Subject: Titillate: Allow full overlap --- Plugin/Titillate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugin') diff --git a/Plugin/Titillate.pm b/Plugin/Titillate.pm index 9afb1c6..91e91e5 100644 --- a/Plugin/Titillate.pm +++ b/Plugin/Titillate.pm @@ -28,7 +28,7 @@ sub on_message { foreach (@expressions) { my $e = $_; while ($what =~ /($e)/gi) { - $responses{$-[0]} = $config->{triggers}->{$e}; + $responses{$-[0]} .= $config->{triggers}->{$e}; } } $gathered .= $responses{$_} foreach (sort { $a <=> $b } (keys %responses)); -- cgit v1.1