Fix case sensitivity of PMs
This commit is contained in:
parent
f7bf915f87
commit
bf959429f9
|
@ -2877,6 +2877,7 @@ Channel.prototype.handlePm = function (user, data) {
|
||||||
if (typeof data.msg !== "string" || typeof data.to !== "string") {
|
if (typeof data.msg !== "string" || typeof data.to !== "string") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
data.to = data.to.toLowerCase();
|
||||||
|
|
||||||
if (data.to === user.name) {
|
if (data.to === user.name) {
|
||||||
user.socket.emit("errorMsg", {
|
user.socket.emit("errorMsg", {
|
||||||
|
|
Loading…
Reference in a new issue