src/irc_log.c
changeset 37 4fe4a3c4496e
parent 29 3f0f2898fea3
child 38 0c2e0cb46c3a
--- 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