Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use warnings;
  4. use strict;
  5.  
  6. sub cmd_filteredit {
  7. my $cmd = shift;
  8. my $filtername = shift;
  9.  
  10. my $filter = BarnOwl::getfilter($filtername);
  11. chomp $filter;
  12. BarnOwl::command("start-command filter " . $filter);
  13. }
  14.  
  15. BarnOwl::new_command('filteredit' => \&cmd_filteredit, {
  16. summary => 'edit the named filter',
  17. usage => 'filteredit FILTERNAME',
  18. description => 'Edit the named filter'
  19. });
  20.  
  21. 1;
Add Comment
Please, Sign In to add comment