dict_delete(chanlist);
chanlist = dict_new();
dict_set_free_data(chanlist, free_chanlist_entry);
-
- conf_register_reload(watchdog_conf_read);
- reg_exit_func(watchdog_cleanup);
- saxdb_register("Watchdog", watchdog_saxdb_read, watchdog_saxdb_write);
const char *nick, *modes;
if((nick = conf_get_data("modules/watchdog/nick", RECDB_QSTRING))) {
reg_allchanmsg_func(watchdog, watchdog_channel_message);
}
+ conf_register_reload(watchdog_conf_read);
+ reg_exit_func(watchdog_cleanup);
+ saxdb_register("Watchdog", watchdog_saxdb_read, watchdog_saxdb_write);
+
watchdog_module = module_register("Watchdog", MS_LOG, "mod-watchdog.help", NULL);
modcmd_register(watchdog_module, "addbad", cmd_addbad, 1, MODCMD_REQUIRE_AUTHED, "flags", "+oper", NULL);
modcmd_register(watchdog_module, "delbad", cmd_delbad, 1, MODCMD_REQUIRE_AUTHED, "flags", "+oper", NULL);