Changeset 7933748 for commands.c


Ignore:
Timestamp:
Feb 21, 2003, 10:50:15 AM (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:
ed2412d
Parents:
2c8d62e
Message:
Added a 'loadloginsubs' command to load login subscriptions from a
  file
Added a 'loadsubs' command to eventually phase out the 'load-subs'
  command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r5c7b1b1 r7933748  
    365365              "load subscriptions from a file",
    366366              "load-subs <file>\n", ""),
     367
     368  OWLCMD_ARGS("loadsubs", owl_command_loadsubs, OWL_CTX_ANY,
     369              "load subscriptions from a file",
     370              "loadsubs <file>\n", ""),
     371
     372  OWLCMD_ARGS("loadloginsubs", owl_command_loadloginsubs, OWL_CTX_ANY,
     373              "load login subscriptions from a file",
     374              "loadloginsubs <file>\n",
     375              "The file should contain a list of usernames, one per line."),
    367376
    368377  OWLCMD_VOID("about", owl_command_about, OWL_CTX_INTERACTIVE,
     
    933942  } else {
    934943    owl_function_makemsg("Wrong number of arguments for load-subs.");
    935     return NULL;
    936   }
    937   return NULL;
     944    return(NULL);
     945  }
     946  return(NULL);
     947}
     948
     949
     950char *owl_command_loadloginsubs(int argc, char **argv, char *buff) {
     951  if (argc == 2) {
     952    owl_function_loadloginsubs(argv[1]);
     953  } else if (argc == 1) {
     954    owl_function_loadloginsubs(NULL);
     955  } else {
     956    owl_function_makemsg("Wrong number of arguments for load-subs.");
     957    return(NULL);
     958  }
     959  return(NULL);
    938960}
    939961
Note: See TracChangeset for help on using the changeset viewer.