Fix opening extra tabs for uppercase names
This commit is contained in:
parent
bf959429f9
commit
638333c345
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue