diff --git a/lib/channel.js b/lib/channel.js index 004ab61d..4772dfe6 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2877,6 +2877,7 @@ Channel.prototype.handlePm = function (user, data) { if (typeof data.msg !== "string" || typeof data.to !== "string") { return; } + data.to = data.to.toLowerCase(); if (data.to === user.name) { user.socket.emit("errorMsg", {