Binato/server/Packets/SetAwayMessage.js

4 lines
222 B
JavaScript
Raw Normal View History

2022-01-04 04:43:32 +00:00
module.exports = function(CurrentUser, Message) {
if (/[^0-9A-Za-z]/.test(Message.message)) return;
global.DatabaseHelper.query(`UPDATE users_info SET away_message = '${Message.message}' WHERE id = ${CurrentUser.id}`);
}