Changeset 9195a6a in code for cmd.c


Ignore:
Timestamp:
Dec 24, 2013, 6:56:50 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
4284008
Parents:
bf02a60
Message:

add a simple help command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    rbf02a60 r9195a6a  
    2828extern int creategroups;
    2929
     30void icb_cmd_help(struct icb_session *, char *);
    3031void icb_cmd_beep(struct icb_session *, char *);
    3132void icb_cmd_boot(struct icb_session *, char *);
     
    4546                void            (*handler)(struct icb_session *, char *);
    4647        } cmdtab[] = {
     48                { "?",          icb_cmd_help },
    4749                { "beep",       icb_cmd_beep },
    4850                { "boot",       icb_cmd_boot },
     
    6668
    6769void
     70icb_cmd_help(struct icb_session *is, char *arg __attribute__((unused)))
     71{
     72        icb_status(is, STATUS_HELP, "Server supports following commands:");
     73        icb_status(is, STATUS_HELP, "beep boot g m name nobeep pass topic");
     74}
     75
     76void
    6877icb_cmd_beep(struct icb_session *is, char *arg)
    6978{
Note: See TracChangeset for help on using the changeset viewer.