From ea5779e5402bb9b0a67de4d1960cb2e6f7599ad1 Mon Sep 17 00:00:00 2001 From: William Granados Date: Tue, 14 Nov 2017 21:59:27 -0500 Subject: [PATCH] Fix error message for failed redirects (#4150) --- chat-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-commands.js b/chat-commands.js index 4afa761a51..8343777079 100644 --- a/chat-commands.js +++ b/chat-commands.js @@ -1464,7 +1464,7 @@ exports.commands = { if (!room.users[targetUser.userid]) { return this.errorReply("User " + this.targetUsername + " is not in the room " + room.id + "."); } - if (targetUser.joinRoom(targetRoom.id) === false) return this.errorReply("User " + targetUser.name + " could not be joined to room " + targetRoom.title + ". They could be banned from the room."); + if (!targetUser.joinRoom(targetRoom.id)) return this.errorReply("User " + targetUser.name + " could not be joined to room " + targetRoom.title + ". They could be banned from the room."); this.addModCommand("" + targetUser.name + " was redirected to room " + targetRoom.title + " by " + user.name + "."); targetUser.leaveRoom(room); },