diff options
author | David Phillips <david@sighup.nz> | 2017-03-17 16:16:59 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-17 16:16:59 +1300 |
commit | cc613822bf78d1a73e02bc3ddf99bea68babe3ad (patch) | |
tree | 1c55c89f306dcf814126c6fcb9d73b251daa5feb | |
parent | 63afa0e25d793ef5304ea2ebf7f9d822f0ca76b2 (diff) | |
download | idalius-cc613822bf78d1a73e02bc3ddf99bea68babe3ad.tar.xz |
Return case-insensitive operation, remove debug print
-rwxr-xr-x | saxrobot | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -84,15 +84,14 @@ sub irc_public { my $me = $irc->nick_name; my $collected_response = ""; - print $config{triggers}; my @expressions = (keys %{$config{triggers}}); my $expression = join '|', @expressions; - while ($what =~ /($expression)/g) { + while ($what =~ /($expression)/gi) { my $matched = $1; my $key; # figure out which key matched foreach (@expressions) { - if ($matched =~ /$_/) { + if ($matched =~ /$_/i) { $key = $_; last; } |