Changeset 4692b70 for commands.c


Ignore:
Timestamp:
Oct 28, 2006, 4:54:04 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:
421c8ef7
Parents:
e0540e4
Message:
Exposing owl_function_error and owl_function_makemsg as commands
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rdb8b00b r4692b70  
    727727              ""),
    728728
     729  OWLCMD_ARGS("error", owl_command_error, OWL_CTX_ANY,
     730              "Display an error message",
     731              "error <message>",
     732              ""),
     733
     734  OWLCMD_ARGS("message", owl_command_message, OWL_CTX_ANY,
     735              "Display an informatative message",
     736              "message <message>",
     737              ""),
    729738
    730739  /****************************************************************/
     
    24112420}
    24122421
     2422char *owl_command_error(int argc, char **argv, char *buff)
     2423{
     2424    buff = skiptokens(buff, 1);
     2425    owl_function_error(buff);
     2426    return NULL;
     2427}
     2428
     2429char *owl_command_message(int argc, char **argv, char *buff)
     2430{
     2431    buff = skiptokens(buff, 1);
     2432    owl_function_makemsg(buff);
     2433    return NULL;
     2434}
     2435
    24132436/*********************************************************************/
    24142437/************************** EDIT SPECIFIC ****************************/
Note: See TracChangeset for help on using the changeset viewer.