From f4925927352d37ac7e1d31c1350edf951f3889ae Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 29 Feb 2016 02:50:53 +0100 Subject: factoids: look for duplicates case-insensitively --- plugins/zyklonb/factoids | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"); -- cgit v1.2.3-70-g09d2