aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-10-15 13:16:58 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-10-15 13:16:58 +1300
commit186cb12c229522bc49940129c710d877c36548cc (patch)
tree8c8ff24464b1757fc3c90b220d582a41822d555b
parent7ebdcce5c312cd262e13f040e9dae55b708a915d (diff)
downloadidalius-186cb12c229522bc49940129c710d877c36548cc.tar.xz
Titillate: Allow full overlap
-rw-r--r--Plugin/Titillate.pm2
1 files changed, 1 insertions, 1 deletions
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));