Fix case sensitivity of PMs

This commit is contained in:
calzoneman 2014-02-15 22:23:18 -06:00
parent f7bf915f87
commit bf959429f9
1 changed files with 1 additions and 0 deletions

View File

@ -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", {