Fix opening extra tabs for uppercase names

This commit is contained in:
calzoneman 2014-02-15 22:44:05 -06:00
parent bf959429f9
commit 638333c345
1 changed files with 2 additions and 1 deletions

View File

@ -2877,6 +2877,7 @@ Channel.prototype.handlePm = function (user, data) {
if (typeof data.msg !== "string" || typeof data.to !== "string") {
return;
}
var reallyTo = data.to;
data.to = data.to.toLowerCase();
if (data.to === user.name) {
@ -2924,7 +2925,7 @@ Channel.prototype.handlePm = function (user, data) {
msg = this.filterMessage(msg);
var msgobj = {
username: user.name,
to: data.to,
to: reallyTo,
msg: msg,
meta: meta,
time: Date.now()