Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 02d0bd8f authored by Deucе's avatar Deucе 👌🏾

Allow comments at end of @if ... then do lines

This likely breaks things nobody does.
parent deb14008
Pipeline #1460 passed with stage
in 9 minutes and 3 seconds
......@@ -1114,7 +1114,8 @@ y }
var tmp;
// TODO: This implies that the line "@do" will execute the next line... but this is used for @if parsing... also, this will choke on comments.
if (args.length < 1 || args.length == 1 && args[0].toLowerCase() === 'do') {
// TODO: I likely just broke @do do XXX, hopefully nobody notices until I rewrite this.
if (args.length < 1 || args[0].toLowerCase() === 'do') {
if (line + 1 >= files[fname].lines.length)
throw new Error('do at end of file');
// Trailing do is not fatal... see jump.ref:21 in cnw
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment