diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-02-29 02:50:53 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-02-29 02:50:53 +0100 |
commit | f4925927352d37ac7e1d31c1350edf951f3889ae (patch) | |
tree | 2905a3b5cabf0281ba6b29d888bf1b8826c9e011 /plugins | |
parent | 61907330795649cbdc7c893bb152a6c198a4e67b (diff) | |
download | xK-f4925927352d37ac7e1d31c1350edf951f3889ae.tar.gz xK-f4925927352d37ac7e1d31c1350edf951f3889ae.tar.xz xK-f4925927352d37ac7e1d31c1350edf951f3889ae.zip |
factoids: look for duplicates case-insensitively
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/zyklonb/factoids | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/zyklonb/factoids b/plugins/zyklonb/factoids index 4fe7aee..3b6be64 100755 --- a/plugins/zyklonb/factoids +++ b/plugins/zyklonb/factoids @@ -79,7 +79,7 @@ sub learn { my $entries = $db{$name}; return &$respond("duplicate definition") - if grep { $_ eq $definition } @$entries; + if grep { lc $_ eq lc $definition } @$entries; push @$entries, $definition; &$respond("saved as #${\scalar @$entries}"); |