#ifndef OPERCMD_H #define OPERCMD_H #include "config.h" struct Command { /* Index of command in COMMAND_TABLE in opercmd.c */ unsigned short type; /* Command parameter. * but i cant think of any commands bopm will ever have that is * multiple parameters * * I still havn't -Erik 12/11/02 */ char *param; /* Who ordered it. */ char *irc_nick; /* Where the reply is to be sent. */ struct ChannelConf *target; /* * When it was added, because we might need to remove it if it does * not get executed. */ time_t added; }; typedef void (*oper_command) (char *, char*, struct ChannelConf *); struct OperCommandHash { char *command; oper_command handler; }; extern void command_init(void); extern void command_userhost(char *); extern void command_timer(void); extern void command_parse(char *, char *, struct ChannelConf *, struct UserInfo *); #endif