Procházet zdrojové kódy

If a bot links without feature flags, share and save it as such.

Bryan Drewery před 10 roky
rodič
revize
e238ed47db
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/dcc.cc

+ 3 - 0
src/dcc.cc

@@ -306,6 +306,9 @@ bot_version(int idx, char *par)
     /* Must support older bots which sent '<->' here for network. */
     if (strcmp(work, "<->")) {
       fflags = atoi(work);
+    } else {
+      /* Older bot doesn't have feature flags. */
+      fflags = 0;
     }
   }
   if (par[0])