Changeset 1a9c761 for perlwrap.pm


Ignore:
Timestamp:
Jan 18, 2007, 5:57:34 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
212764e
Parents:
32fa306
git-author:
Nelson Elhage <nelhage@mit.edu> (01/18/07 17:57:29)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/18/07 17:57:34)
Message:
Modify :reload to be aware of the -c option, and to work if there is no .owlconf
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlwrap.pm

    r8203afd r1a9c761  
    323323  # Do reload
    324324  package main;
    325   if (do "$ENV{HOME}/.owlconf" && BarnOwl::reload_hook(@_))
    326   {
    327       return "owlconf reloaded";
    328   }
    329   else
    330   {
    331       return "$ENV{HOME}/.owlconf load attempted, but error encountered:\n$@";
     325  if (-r $BarnOwl::configfile) {
     326      undef $@;
     327      do $BarnOwl::configfile;
     328      owl::error("Error reloading $BarnOwl::configfile: $@") if $@;
    332329  }
     330  BarnOwl::reload_hook(@_);
    333331  package owl;
    334332}
Note: See TracChangeset for help on using the changeset viewer.