aboutsummaryrefslogtreecommitdiff
path: root/saxrobot
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-03-17 10:32:06 +1300
committerDavid Phillips <david@sighup.nz>2017-03-17 10:35:28 +1300
commit39757ff46ec4ea773f7d41df62e3b98e3a4e73df (patch)
tree918a48f4378bd29829925835c56f5f1319edc93b /saxrobot
parentc1252b8ffd5eccc000b302948fd52f7a4dd59363 (diff)
downloadidalius-39757ff46ec4ea773f7d41df62e3b98e3a4e73df.tar.xz
Integrate sax->🎷 into the generic re->rep config options
Diffstat (limited to 'saxrobot')
-rwxr-xr-xsaxrobot7
1 files changed, 1 insertions, 6 deletions
diff --git a/saxrobot b/saxrobot
index 0fed5b3..599d4e8 100755
--- a/saxrobot
+++ b/saxrobot
@@ -83,12 +83,7 @@ sub irc_public {
my $me = $irc->nick_name;
- my $saxcount = () = $what =~ /sa+x/gi;
-
- if ($saxcount > 0) {
- $irc->yield(privmsg => $channel => "🎷 " x $saxcount);
- }
-
+ # FIXME tidy this loop: do we need $idx?
my $idx = 0;
for (@{$config{re}}) {
my $repcount = () = $what =~ /@{$config{re}}[$idx]/gi;