X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2f61d1d75ac52f239e760ecea02332eedc4682bd..0b401fb654b69fd9649954a9bdd5ff041971e62d:/src/gline.c diff --git a/src/gline.c b/src/gline.c index d56183d..96f02d3 100644 --- a/src/gline.c +++ b/src/gline.c @@ -3,9 +3,9 @@ * * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -122,12 +122,6 @@ gline_remove(const char *target, int announce) timeq_add(new_first->expires, gline_expire, 0); } } -#ifdef WITH_PROTOCOL_BAHAMUT - /* Bahamut is sort of lame: It permanently remembers any AKILLs - * with durations longer than a day, and will never auto-expire - * them. So when the time comes, we'd better remind it. */ - announce = 1; -#endif if (announce) irc_ungline(target); return res; @@ -303,7 +297,7 @@ gline_saxdb_write(struct saxdb_context *ctx) } static void -gline_db_cleanup(void) +gline_db_cleanup(UNUSED_ARG(void *extra)) { heap_delete(gline_heap); dict_delete(gline_dict); @@ -316,7 +310,7 @@ gline_init(void) gline_dict = dict_new(); dict_set_free_data(gline_dict, free_gline_from_dict); saxdb_register("gline", gline_saxdb_read, gline_saxdb_write); - reg_exit_func(gline_db_cleanup); + reg_exit_func(gline_db_cleanup, NULL); } struct gline_discrim * @@ -430,3 +424,4 @@ gline_discrim_search(struct gline_discrim *discrim, gline_search_func gsf, void heap_remove_pred(gline_heap, gline_search_helper, &search); return search.hits; } +