From bf959429f92f95adb98cab6b1b74301b9f82f1f0 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 15 Feb 2014 22:23:18 -0600 Subject: [PATCH] Fix case sensitivity of PMs --- lib/channel.js | 1 + 1 file changed, 1 insertion(+) 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", {