aboutsummaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-15 02:49:49 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-15 02:49:49 +0100
commit0431ea17870f5c382fe5fb692c2852ae80432737 (patch)
treeaac66b136740754f56d643df75e2be45dfbce548 /commands.h
parent9d6b229674144d2a48348aeb120604164f371904 (diff)
parentde3e100b7fa676bb628ead4cca2b8cee91fc3a84 (diff)
Imported irc_command branch and used this addition for parsing IPC commands. (Implemented WALLOP and a very evil DIE.)
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h28
1 files changed, 7 insertions, 21 deletions
diff --git a/commands.h b/commands.h
index 806126e6..e43d275a 100644
--- a/commands.h
+++ b/commands.h
@@ -28,33 +28,19 @@
#include "bitlbee.h"
-typedef struct command_t
+typedef struct command
{
char *command;
int required_parameters;
int (*execute)(irc_t *, char **args);
+ int flags;
} command_t;
-int cmd_account( irc_t *irc, char **cmd );
-int cmd_help( irc_t *irc, char **args);
-int cmd_info( irc_t *irc, char **args);
-int cmd_add( irc_t *irc, char **args) ;
-int cmd_rename( irc_t *irc, char **args );
-int cmd_remove( irc_t *irc, char **args );
-int cmd_block( irc_t *irc, char **args );
-int cmd_allow( irc_t *irc, char **args );
-int cmd_save( irc_t *irc, char **args );
-int cmd_set( irc_t *irc, char **args );
-int cmd_yesno( irc_t *irc, char **args );
-int cmd_identify( irc_t *irc, char **args );
-int cmd_register( irc_t *irc, char **args );
-int cmd_drop( irc_t *irc, char **args );
-int cmd_blist( irc_t *irc, char **cmd );
-int cmd_nick( irc_t *irc, char **cmd );
-int cmd_qlist( irc_t *irc, char **cmd );
-int cmd_import_buddies( irc_t *irc, char **cmd );
-int cmd_dump( irc_t *irc, char **cmd );
-
extern const command_t commands[];
+#define IRC_CMD_PRE_LOGIN 1
+#define IRC_CMD_LOGGED_IN 2
+#define IRC_CMD_OPER_ONLY 4
+#define IRC_CMD_TO_MASTER 8
+
#endif