Fix warn reason spacing

Fixes #4661
This commit is contained in:
Guangcong Luo
2018-05-10 19:32:58 -05:00
parent 2a02f1f9a5
commit bd3771db3f

View File

@@ -1612,7 +1612,7 @@ const commands = {
if (!this.can('warn', targetUser, room)) return false;
if (targetUser.can('makeroom')) return this.errorReply("You are not allowed to warn upper staff members.");
this.addModAction(`${targetUser.name} was warned by ${user.name}.${(target ? `(${target})` : ``)}`);
this.addModAction(`${targetUser.name} was warned by ${user.name}.${(target ? ` (${target})` : ``)}`);
this.modlog('WARN', targetUser, target, {noalts: 1});
targetUser.send(`|c|~|/warn ${target}`);
let userid = targetUser.getLastId();