1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

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

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