]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/hash.c
Fix typos and copy errors in chanserv help
[irc/evilnet/x3.git] / src / hash.c
index 1adfeca56b61b6f935e48a81f689f1e224011298..9775cfedeb05f4356f1b411af20fbb63a734e83f 100644 (file)
@@ -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);