]> asedeno.scripts.mit.edu Git - ColorUtils.git/commitdiff
Switch from BarnOwl::filter() to BarnOwl::command
authorAlejandro R. Sedeño <asedeno@mit.edu>
Sat, 1 Aug 2009 00:40:58 +0000 (20:40 -0400)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Mon, 9 Nov 2009 22:41:21 +0000 (17:41 -0500)
In anticipation of a change to how BarnOwl::filter will parse its
arguments without tokenizing, switch to using BarnOwl::command, which
will continue to do so.

lib/BarnOwl/Module/ColorUtils.pm

index dd8662f36f22de98b9e7d0183aedd9f7334bd6f7..20d7e5cdea0caf03e5ffe3f3ffede5b4aaefa7a2 100644 (file)
@@ -250,7 +250,7 @@ sub createFilters($) {
         my $filter = 'ColorUtils::'.$color.(($fgbg eq 'bg') ? '-bg' : '');
         my $filterspec = "$filter ".(($fgbg eq 'bg') ? '-b' : '-c')." $color ";
         if (scalar(@strs)) {
-            BarnOwl::filter("$filterspec ( "
+            BarnOwl::command("filter $filterspec ( "
                            . join(' or ', @strs)
                            . ' )');
         } else {