Do not convert F:FEATURENAME to "FEATURENAME" = ;
[ircu2.10.12-pk.git] / ircd / convert-conf.c
index 7947fff9f1b318dc12d29d4dbd6d5651b1ee5d9a..9aa92575e9136e7ca4cff8b44e9ba41210d2149c 100644 (file)
@@ -354,6 +354,14 @@ static void finish_features(void)
             continue;
         }
 
+        /* If it had no value before, drop it now since the lexer does
+         * not accept empty strings and the grammar does not accept
+         * empty stringlists.*/
+        if (!feat->values) {
+            fprintf(stdout, "# Above feature had no value.\n");
+            continue;
+        }
+
         /* Wasn't remapped, wasn't removed: print it out. */
         fprintf(stdout, "\t\"%s\" =", feat->name);
         for (sl = feat->values; sl; sl = sl->next)