mirror of https://github.com/calzoneman/sync.git
Fix #362
This commit is contained in:
parent
46b288d6ee
commit
0c9099e766
|
@ -139,6 +139,12 @@ ChatModule.prototype.handlePm = function (user, data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!user.is(Flags.U_LOGGED_IN)) {
|
||||||
|
return user.socket.emit("errorMsg", {
|
||||||
|
msg: "You must be signed in to send PMs"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var reallyTo = data.to;
|
var reallyTo = data.to;
|
||||||
data.to = data.to.toLowerCase();
|
data.to = data.to.toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue