Commit 5db63685 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Simplify /help code.

parent e99aa7d4
......@@ -2455,11 +2455,7 @@ commands.help = {
continue;
cs.push(`/${cmd}${c.parameters?' ' + c.parameters:''}: ${c.description}`);
}
cs.sort();
let s = '';
for(let i = 0; i < cs.length; i++)
s = s + cs[i] + '\n';
localMessage(s);
localMessage(cs.sort().join('\n'));
}
};
......
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