This commit is contained in:
Calvin Montgomery 2014-05-21 20:07:04 -07:00
parent 46b288d6ee
commit 0c9099e766
1 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,12 @@ ChatModule.prototype.handlePm = function (user, data) {
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;
data.to = data.to.toLowerCase();