Просмотр исходного кода

* Don't free_conf_bots() if we're a hub or localhub

svn: 2001
Bryan Drewery 21 лет назад
Родитель
Сommit
1989cc8bc7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -618,7 +618,7 @@ static void startup_checks(int hack) {
   if (conf.bot->disabled)
     werr(ERR_BOTDISABLED);
 
-  if (!conf.bot->localhub)
+  if (!conf.bot->hub && !conf.bot->localhub)
     free_conf_bots();			/* not a localhub, so no need to store all bot info */
 }