X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/c8b4b87b54ea0c801710f33c16e9ee5f44509055..0b401fb654b69fd9649954a9bdd5ff041971e62d:/src/hash.c diff --git a/src/hash.c b/src/hash.c index 1adfeca..9775cfe 100644 --- a/src/hash.c +++ b/src/hash.c @@ -38,6 +38,7 @@ dict_t servers; unsigned int max_clients, invis_clients; time_t max_clients_time; struct userList curr_opers; +unsigned int count_opers; static void hash_cleanup(void *extra); @@ -47,6 +48,7 @@ void init_structs(void) clients = dict_new(); servers = dict_new(); userList_init(&curr_opers); + count_opers = 0; reg_exit_func(hash_cleanup, NULL); } @@ -729,7 +731,6 @@ AddChannelUser(struct userNode *user, struct chanNode* channel) && !(channel->modes & MODE_REGISTERED) && !(channel->modes & MODE_APASS)) { mNode->modes |= MODE_CHANOP; - log_module(MAIN_LOG, LOG_DEBUG, "setting op"); } if (IsLocal(user)) { @@ -1056,6 +1057,7 @@ hash_cleanup(UNUSED_ARG(void *extra)) dict_delete(clients); dict_delete(servers); userList_clean(&curr_opers); + count_opers = 0; free(slf_list); free(slf_list_extra);