fixed last commit fail
[srvx.git] / src / mod-watchdog.c
index e6bb84c8c56095930f633dd647cff7b7952ef078..23b68c55ac7d43887b6b252a66c40c0f205e1070 100644 (file)
@@ -543,7 +543,7 @@ watchdog_conf_read(void)
     str = database_get_data(conf_node, "punishment_reason", RECDB_QSTRING);
        watchdog_conf.punishment_reason = (str ? str : "Your message contained a forbidden word.");
 
-       str = database_get_data(conf_node, "alert_chan", RECDB_QSTRING);
+       str = database_get_data(conf_node, "alert_channel", RECDB_QSTRING);
        if(str)
        {
                watchdog_conf.alert_channel = AddChannel(str, now, "+tinms", NULL);
@@ -553,7 +553,7 @@ watchdog_conf_read(void)
                watchdog_conf.alert_channel = NULL;
        }
     
-       str = database_get_data(conf_node, "oper_chan", RECDB_QSTRING);
+       str = database_get_data(conf_node, "oper_channel", RECDB_QSTRING);
        if(str)
        {
                watchdog_conf.oper_channel = AddChannel(str, now, "+tinms", NULL);