瀏覽代碼

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

Bryan Drewery 10 年之前
父節點
當前提交
e238ed47db
共有 1 個文件被更改,包括 3 次插入0 次删除
  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. */
     /* Must support older bots which sent '<->' here for network. */
     if (strcmp(work, "<->")) {
     if (strcmp(work, "<->")) {
       fflags = atoi(work);
       fflags = atoi(work);
+    } else {
+      /* Older bot doesn't have feature flags. */
+      fflags = 0;
     }
     }
   }
   }
   if (par[0])
   if (par[0])