FactoidCommands: fix another case-sensitivity location

This commit is contained in:
Pragmatic Software 2020-06-05 15:23:16 -07:00
parent 8d0d2bcb21
commit 6e4ea442db
1 changed files with 2 additions and 2 deletions

View File

@ -1108,7 +1108,7 @@ sub cmd_factchange {
} }
if (@factoids > 1) { if (@factoids > 1) {
if (not grep { $_->[0] eq $from_chan } @factoids) { if (not grep { lc $_->[0] eq $from_chan } @factoids) {
return return
"/say $from_trigger found in multiple channels: " "/say $from_trigger found in multiple channels: "
. (join ', ', sort map { $_->[0] eq '.*' ? 'global' : $_->[0] } @factoids) . (join ', ', sort map { $_->[0] eq '.*' ? 'global' : $_->[0] } @factoids)
@ -1470,7 +1470,7 @@ sub find_factoid_with_optional_channel {
} }
} else { } else {
foreach my $factoid (@factoids) { foreach my $factoid (@factoids) {
if ($factoid->[0] eq $from_chan) { if (lc $factoid->[0] eq $from_chan) {
($channel, $trigger) = ($factoid->[0], $factoid->[1]); ($channel, $trigger) = ($factoid->[0], $factoid->[1]);
last; last;
} }