src/nexus.c
branchmodules
changeset 56 942370000450
parent 55 6f7f6ae729d0
child 61 4ba21936518a
--- a/src/nexus.c	Sun Mar 15 01:17:22 2009 +0200
+++ b/src/nexus.c	Sun Mar 15 23:01:12 2009 +0200
@@ -181,18 +181,20 @@
 
         // get the channel
         if (log_chan_info.channel) {
+            char conf_channel[] = "default/#test";
+
             // create the channel
             if ((irc_net_add_chan(net, &log_chan_info)) == NULL)
                 FATAL("irc_net_add_chan");
 
             // configure it
             // XXX: hardcoded
-            if ((ERROR_CODE(&err) = module_conf(mod_irc_log, "channel", "default/#test")))
-                FATAL_ERROR(&err, "module_conf(irc_log, '%s', '%s)", "channel", "default/#test");
+            if (module_conf(mod_irc_log, "channel", conf_channel, &err))
+                FATAL_ERROR(&err, "module_conf(irc_log, '%s', '%s)", "channel", conf_channel);
         }
 
         // configure the databse info
-        if (log_db_info && (ERROR_CODE(&err) = module_conf(mod_irc_log, "db_info", log_db_info)))
+        if (log_db_info && module_conf(mod_irc_log, "db_info", log_db_info, &err))
             FATAL_ERROR(&err, "module_conf(irc_log, 'db_info', '%s')", log_db_info);
     }