Changeset d7bcff8 for perl/lib


Ignore:
Timestamp:
Jul 27, 2009, 11:23:57 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6e48560
Parents:
13614e7
git-author:
Nelson Elhage <nelhage@mit.edu> (07/25/09 01:23:25)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/27/09 23:23:57)
Message:
Keep a global list of all defined command names.
Location:
perl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl.pm

    r8eac1a5 rd7bcff8  
    176176# switch, if present.
    177177our $configfile;
     178
     179our @all_commands;
    178180
    179181if(!$configfile && -f $ENV{HOME} . "/.barnowlconf") {
  • perl/lib/BarnOwl/Hooks.pm

    r2be605a rd7bcff8  
    212212        }
    213213    }
     214
     215    if(!contains(\@BarnOwl::all_commands, $command)) {
     216        push @BarnOwl::all_commands, $command;
     217    }
    214218}
    215219
Note: See TracChangeset for help on using the changeset viewer.