aboutsummaryrefslogtreecommitdiff
path: root/saxrobot
diff options
context:
space:
mode:
Diffstat (limited to 'saxrobot')
-rwxr-xr-xsaxrobot11
1 files changed, 11 insertions, 0 deletions
diff --git a/saxrobot b/saxrobot
index 8a59db6..8e8bd9f 100755
--- a/saxrobot
+++ b/saxrobot
@@ -88,6 +88,17 @@ sub irc_public {
if ($saxcount > 0) {
$irc->yield(privmsg => $channel => "🎷 " x $saxcount);
}
+
+ my $idx = 0;
+ for (@{$config{re}}) {
+ my $repcount = () = $what =~ /@{$config{re}}[$idx]/gi;
+ if ($repcount > 0) {
+ if ($repcount > 0) {
+ $irc->yield(privmsg => $channel => @{$config{rep}}[$idx] x $repcount);
+ }
+ $idx++;
+ }
+
return;
}