Binato/server/Packets/SetAwayMessage.js

3 lines
No EOL
171 B
JavaScript

module.exports = function(CurrentUser, Message) {
global.DatabaseHelper.query("UPDATE users_info SET away_message = ? WHERE id = ?", [Message.message, CurrentUser.id]);
}