--- a/src/irc_log.c Thu Mar 12 18:08:27 2009 +0200
+++ b/src/irc_log.c Thu Mar 12 18:11:44 2009 +0200
@@ -14,11 +14,10 @@
} _ctx;
-static void on_PRIVMSG (struct irc_conn *conn, const struct irc_line *line, void *arg)
+static void on_PRIVMSG (const struct irc_line *line, void *arg)
{
struct irc_log_ctx *ctx = arg;
- (void) conn;
(void) ctx;
// log it! :P
@@ -49,7 +48,7 @@
// register for events
// XXX: need irc_chan API for this
- if ((err = irc_conn_register_handler_chain(info->channel->net->conn, _cmd_handlers, ctx)))
+ if ((err = irc_conn_add_cmd_handlers(info->channel->net->conn, _cmd_handlers, ctx)))
return err;
// ok