--- a/src/irc_log.c Mon Mar 16 00:06:59 2009 +0200
+++ b/src/irc_log.c Mon Mar 16 00:09:53 2009 +0200
@@ -6,10 +6,12 @@
#include <stdlib.h>
#include <string.h>
+/*
#include <event2/event.h>
// XXX: fix this err_t crap
#define LIB_ERR_H
#include <evsql.h>
+*/
/**
* The irc_log module state
@@ -18,8 +20,10 @@
/** The nexus this module is loaded for */
struct nexus *nexus;
+#if 0
/** The database connection */
struct evsql *db;
+#endif
};
@@ -60,14 +64,14 @@
static err_t irc_log_conf (void *mod_ctx, const char *name, char *value, struct error_info *err)
{
struct irc_log_ctx *ctx = mod_ctx;
-
+/*
if (strcmp(name, "db_info") == 0) {
log_info("connect to database: %s", value);
if ((ctx->db = evsql_new_pq(ctx->nexus->ev_base, value, NULL, NULL)) == NULL)
return ERR_EVSQL_NEW_PQ;
- } else if (strcmp(name, "channel") == 0) {
+ } else */ if (strcmp(name, "channel") == 0) {
const char *network = strsep(&value, "/");
const char *channel = value;
--- a/src/nexus.c Mon Mar 16 00:06:59 2009 +0200
+++ b/src/nexus.c Mon Mar 16 00:09:53 2009 +0200
@@ -172,7 +172,7 @@
struct module_info mod_irc_log_info = {
.name = "irc_log",
- .path = "modules/irc_log.so"
+ .path = "modules/libirc_log.so"
};
// load the module