Changeset 9fae35c for commands.h


Ignore:
Timestamp:
2006-01-23T23:28:13Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
ec3e411
Parents:
7308b63 (diff), 68c7c14 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.h

    r7308b63 r9fae35c  
    2929#include "bitlbee.h"
    3030
    31 /* Hmm... Linked list? Plleeeeaaase?? ;-) */
    32 
    33 typedef struct command_t
     31typedef struct command
    3432{
    3533        char *command;
    3634        int required_parameters;
    37         int (*execute)(irc_t *, char **args);
     35        void (*execute)(irc_t *, char **args);
     36        int flags;
    3837} command_t;
    3938
    40 int cmd_account( irc_t *irc, char **cmd );
    41 int cmd_help( irc_t *irc, char **args);
    42 int cmd_info( irc_t *irc, char **args);
    43 int cmd_add( irc_t *irc, char **args) ;
    44 int cmd_rename( irc_t *irc, char **args );
    45 int cmd_remove( irc_t *irc, char **args );
    46 int cmd_block( irc_t *irc, char **args );
    47 int cmd_allow( irc_t *irc, char **args );
    48 int cmd_save( irc_t *irc, char **args );
    49 int cmd_set( irc_t *irc, char **args );
    50 int cmd_yesno( irc_t *irc, char **args );
    51 int cmd_identify( irc_t *irc, char **args );
    52 int cmd_register( irc_t *irc, char **args );
    53 int cmd_drop( irc_t *irc, char **args );
    54 int cmd_blist( irc_t *irc, char **cmd );
    55 int cmd_nick( irc_t *irc, char **cmd );
    56 int cmd_qlist( irc_t *irc, char **cmd );
    57 int cmd_import_buddies( irc_t *irc, char **cmd );
    58 int cmd_dump( irc_t *irc, char **cmd );
     39extern const command_t commands[];
    5940
     41#define IRC_CMD_PRE_LOGIN       1
     42#define IRC_CMD_LOGGED_IN       2
     43#define IRC_CMD_OPER_ONLY       4
     44#define IRC_CMD_TO_MASTER       8
    6045
    61 
    62 extern command_t commands[];
     46#define IPC_CMD_TO_CHILDREN     1
    6347
    6448#endif
Note: See TracChangeset for help on using the changeset viewer.