Kaynağa Gözat

* Don't write out hubs if not a localhub/hub

Bryan Drewery 14 yıl önce
ebeveyn
işleme
79862789a3
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/conf.c

+ 4 - 0
src/conf.c

@@ -1024,6 +1024,10 @@ bin_to_conf(bool error)
 }
 
 void conf_update_hubs(struct userrec* list) {
+  if (!conf.bot->hub && !conf.bot->localhub) {
+    return;
+  }
+
   bd::Array<bd::String> hubUsers, oldhubs(conf.hubs);
 
   // Count how many hubs there are