'working' modules code, and convert irc_log to use said interface, but we've hit the limits on our Makefile, and the compiled module doesn't really work
#ifndef IRC_LOG_H
#define IRC_LOG_H
/**
* @file
*
* Module for logging IRC events to an SQL database
*/
#include "module.h"
#include "error.h"
#include "irc_chan.h"
#include <event2/event.h>
/**
* Initialize the irc_log module to use the given configuration
*/
void* irc_log_init (struct modules *modules, struct error_info *err);
/**
* Set one of the config options:
*
* db_info - the database connection string
* channel - the network:channel to log
*/
err_t irc_log_conf (struct module *module, const char *name, char *value);
#endif