#include #include #include #include "words.h" #define DEBUG 0 #define BUFSIZE 1024 enum { NOCMD, PRIVMSG, MODE, JOIN, QUIT, NICK, PART, ACTION, SPEAK, LASTCMD }; typedef unsigned long hash_t; extern hash_t commands[LASTCMD]; extern hash_t words[LASTWORD]; /* Message Queue for use with the message scheduler */ /* Linked List */ struct msg_queue_t { int type; time_t time; char channel[64]; char message[BUFSIZE]; struct msg_queue_t *next_msg; }; /* Other Includes */ #include "utils.h" #include "hash-tree.h" #include "actions.h" #include "stats.h" /* Rcon Public Interface */ #include "rcon_pub.h" /* Functions */ extern void speak(int s, const char *channel, const char *message); extern void action(int s, const char *channel, const char *message); extern void queue_msg(int type, const char *channel, const char *message, time_t time); extern int get_line(FILE *file, char *buffer, int length); extern void join(int s, const char *channel); extern void part(int s, const char *channel); extern void quit(int s, const char *message);