Fix /forcerename

It now correctly shows forcerename reason. I also took the opportunity
to update the forcerename text.
This commit is contained in:
Guangcong Luo
2014-10-21 03:13:45 -04:00
parent 8143365825
commit 7977cd320b

View File

@@ -1148,7 +1148,7 @@ var commands = exports.commands = {
this.privateModCommand("(" + entry + ")");
Rooms.global.cancelSearch(targetUser);
targetUser.resetName();
targetUser.send("|nametaken||" + user.name + " has forced you to change your name. " + target);
targetUser.send("|nametaken||" + user.name + " considers your name inappropriate" + (reason ? ": " + reason : "."));
},
modlog: function (target, room, user, connection) {