#include #include #include #include "words.h" #define BUFSIZE 1024 enum { NOCMD, PRIVMSG, MODE, JOIN, QUIT, NICK, PART, LASTCMD }; typedef unsigned long hash_t; extern hash_t commands[LASTCMD]; extern hash_t words[LASTWORD]; struct tree_t { hash_t hash; char *data; void *other; int color; struct tree_t *parent; struct tree_t *left; struct tree_t *right; }; struct channel_t { char name[32]; time_t last_msg; int msgs; }; /* Other Includes */ #include "utils.h" #include "hash-tree.h" #include "actions.h" #include "stats.h" /* Functions */ extern void speak(int s, const char *channel, const char *message);