1
Fork 0

Simplify /help code.

This commit is contained in:
Antonin Décimo 2021-08-07 16:42:16 +03:00 committed by Juliusz Chroboczek
parent e99aa7d498
commit 5db63685a2
1 changed files with 1 additions and 5 deletions

View File

@ -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'));
}
};