Fix prefixed parameter serialisation

This commit is contained in:
Les De Ridder 2017-03-11 05:28:24 +01:00
parent 8ec20b7167
commit 0c7430abd2
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 4 additions and 4 deletions

View File

@ -68,11 +68,11 @@ struct Message
if(parameters.length > 1) if(parameters.length > 1)
{ {
message ~= parameters[0 .. $-1].join(' ') ~ " "; message ~= parameters[0 .. $-1].join(' ') ~ " ";
}
if(parameters[$-1].canFind(' ') || prefixedParameter) if(parameters[$-1].canFind(' ') || prefixedParameter)
{ {
message ~= ":"; message ~= ":";
} }
}
message ~= parameters[$-1]; message ~= parameters[$-1];
return message; return message;