#include #include "bot.h" hash_t commands[LASTCMD]; hash_t words[LASTWORD]; void init_commands() { commands[PRIVMSG] = hash("PRIVMSG"); commands[MODE] = hash("MODE"); commands[JOIN] = hash("JOIN"); commands[QUIT] = hash("QUIT"); commands[NICK] = hash("NICK"); commands[PART] = hash("PART"); commands[ACTION] = hash("ACTION"); commands[SPEAK] = hash("SPEAK"); }