Changeset 1b9a163


Ignore:
Timestamp:
Nov 20, 2009, 3:28:54 AM (11 years ago)
Author:
Alex Dehnert <adehnert@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
dab89e28
Parents:
f63a681
git-author:
Alex Dehnert <adehnert@mit.edu> (10/25/09 21:30:48)
git-committer:
Alex Dehnert <adehnert@mit.edu> (11/20/09 03:28:54)
Message:
Fix filter*

Recent tokenization changes broke the filter*
family of commands. This switches them to use
BarnOwl::command and build a new string to be
tokenized.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl.pm

    rffc4df6 r1b9a163  
    445445        BarnOwl::admin_message("Filter", $msgtext);
    446446    }
    447     BarnOwl::filter($filter, $newfilter);
     447    set_filter($filter, $newfilter);
    448448    return;
    449449}
     
    451451                           { default => 1,
    452452                             summary => 'Show modifications to filters by filterappend and friends.'});
     453
     454sub set_filter
     455{
     456    my $filtername = shift;
     457    my $filtertext = shift;
     458    my $cmd = 'filter ' . BarnOwl::quote($filtername) . ' ' . $filtertext;
     459    BarnOwl::command($cmd);
     460}
    453461
    454462=head3 time_format FORMAT
Note: See TracChangeset for help on using the changeset viewer.