]> jfr.im git - solanum.git/blobdiff - ircd/cache.c
Add general::hidden_caps
[solanum.git] / ircd / cache.c
index 3e40eb3683e08e5315a73e8790367d09d03f3e8c..c720e0abdd96c542ee24e398090be45bb2541891 100644 (file)
@@ -68,8 +68,8 @@ init_cache(void)
        oper_motd = cache_file(ircd_paths[IRCD_PATH_IRCD_OMOTD], "opers.motd", 0);
        memset(&links_cache_list, 0, sizeof(links_cache_list));
 
-       help_dict_oper = rb_dictionary_create("oper help", strcasecmp);
-       help_dict_user = rb_dictionary_create("user help", strcasecmp);
+       help_dict_oper = rb_dictionary_create("oper help", rb_strcasecmp);
+       help_dict_user = rb_dictionary_create("user help", rb_strcasecmp);
 }
 
 /*
@@ -217,6 +217,10 @@ free_cachefile(struct cachefile *cacheptr)
                        rb_free(line->data);
                        rb_free(line);
                }
+               else
+               {
+                       rb_free_rb_dlink_node(ptr);
+               }
        }
 
        rb_free(cacheptr);
@@ -268,7 +272,7 @@ load_help(void)
        }
 
        closedir(helpfile_dir);
-       helpfile_dir = opendir(ircd_path[IRCD_PATH_USERHELP]);
+       helpfile_dir = opendir(ircd_paths[IRCD_PATH_USERHELP]);
 
        if(helpfile_dir == NULL)
                return;