Changeset 2404c3a for commands.c


Ignore:
Timestamp:
Oct 3, 2003, 7:34:01 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f933403
Parents:
87c6ef1
Message:
Added the "source" command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rf1e629d r2404c3a  
    226226              "dump <filename>",
    227227              "Dump messages in current view to the named file."),
     228
     229  OWLCMD_ARGS("source", owl_command_source, OWL_CTX_ANY,
     230              "execute owl commands from a file",
     231              "source <filename>",
     232              "Execute the owl commands in <filename>.\n"),
    228233
    229234  OWLCMD_ARGS("addbuddy", owl_command_addbuddy, OWL_CTX_INTERACTIVE,
     
    10491054
    10501055  owl_function_dump(argv[1]);
     1056  return(NULL);
     1057}
     1058
     1059char *owl_command_source(int argc, char **argv, char *buff)
     1060{
     1061  if (argc!=2) {
     1062    owl_function_makemsg("usage: source <filename>");
     1063    return(NULL);
     1064  }
     1065
     1066  owl_function_source(argv[1]);
    10511067  return(NULL);
    10521068}
Note: See TracChangeset for help on using the changeset viewer.