]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/config.c
HELPMOD2: don't ignore +h clients
[irc/quakenet/newserv.git] / core / config.c
index 782f8d7287a4c863fb4ff5ccbac6bc96b22ca53d..ba4099c8a6c4195e67e355e470c09dc186b85097 100644 (file)
@@ -14,6 +14,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+extern void modulerehash(void);
+
 char *theconfig;
 
 typedef struct {
@@ -32,6 +34,7 @@ void rehashconfig() {
   Error("config",ERR_INFO,"Rehashing config file.");
   freeconfig();
   initconfig(NULL);
+  modulerehash();
 }
 
 void freeconfig() {
@@ -77,7 +80,7 @@ void initconfig(char *filename) {
   array_init((&sections),sizeof(configsection));
   
   if ((fp=fopen(filename,"r"))==NULL) {
-    Error("core",ERR_STOP,"Couldn't load config file.");
+    Error("core",ERR_STOP,"Couldn't load config file '%s'.", filename);
     exit(1);
   }