mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Fix double space introduced before last param
This commit is contained in:
parent
9f0177dea0
commit
f78cb8c23b
1 changed files with 3 additions and 1 deletions
|
@ -215,7 +215,9 @@ export function formatMessage(msg) {
|
||||||
}
|
}
|
||||||
s += msg.command;
|
s += msg.command;
|
||||||
if (msg.params && msg.params.length > 0) {
|
if (msg.params && msg.params.length > 0) {
|
||||||
s += " " + msg.params.slice(0, -1).join(" ");
|
for (let i = 0; i < msg.params.length - 1; i++) {
|
||||||
|
s += " " + msg.params[i]
|
||||||
|
}
|
||||||
|
|
||||||
let last = String(msg.params[msg.params.length - 1]);
|
let last = String(msg.params[msg.params.length - 1]);
|
||||||
if (last.length === 0 || last.startsWith(":") || last.indexOf(" ") >= 0) {
|
if (last.length === 0 || last.startsWith(":") || last.indexOf(" ") >= 0) {
|
||||||
|
|
Loading…
Reference in a new issue