Explorar o código

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

Bryan Drewery %!s(int64=10) %!d(string=hai) anos
pai
achega
e238ed47db
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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])