# HG changeset patch # User Tero Marttila # Date 1237154993 -7200 # Node ID 4ba21936518a7e674894011f6ed3016dede284cc # Parent 3c440bebcea7154de207c3b82144045bb2b91931 temporarily disable evsql stuff diff -r 3c440bebcea7 -r 4ba21936518a src/irc_log.c --- 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 #include +/* #include // XXX: fix this err_t crap #define LIB_ERR_H #include +*/ /** * 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; diff -r 3c440bebcea7 -r 4ba21936518a src/nexus.c --- 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