Added a command parser ( irc_md.c irc_cmd.h ) =)
[Cbot.git] / irc_cmd.h
blob1b819084cc7378011c7be74d93f4597b33b9a8e5
1 /* irc_cmd.h - Prototypes of the functions which allows
2 * parse and execute a set of commands into the IRC bot
3 * =====================================================
6 **********************************************************/
8 #include "config.h"
10 #define NORMAL_MSG 0
11 #define EXIT_RESTART 1
12 #define EXIT 2
15 /* The follow structure will be filled with the `irc_parser'
16 * function, and will save some basic information about a
17 * message sent to the channel.
18 ***********************************************************/
19 struct irc_msg{
20 int type; /* Type of the message */
21 char *msg; /* The message to send*/
22 char *msg_log; /* The message to send to the log */
25 struct irc_msg *irc_parser( const char *raw_entry, struct _config *config );