added configuration (re)load event
[NeonServV5.git] / src / main.c
index 2e0e5f3da2d8d5b34bda5b7d629f05efcdfa39de..3bef6eeb08ca917c821ae6240b5c4c2d5e254264 100644 (file)
@@ -209,6 +209,7 @@ int main(int argc, char *argv[]) {
         fprintf(stderr, "Unable to load " CONF_FILE "\n");
         exit(0);
     }
+    event_reload(1);
     #if HAVE_THREADS
     THREAD_MUTEX_INIT(log_sync);
     #endif
@@ -412,6 +413,7 @@ void stop_bot() {
 
 void reload_config() {
     loadConfig(CONF_FILE);
+    event_reload(0);
 }
 
 static int getCurrentSecondsOfDay() {