mirror of https://github.com/calzoneman/sync.git
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") {
|
||||
return;
|
||||
}
|
||||
data.to = data.to.toLowerCase();
|
||||
|
||||
if (data.to === user.name) {
|
||||
user.socket.emit("errorMsg", {
|
||||
|
|
Loading…
Reference in New Issue