Send site report on kick action

This commit is contained in:
Noah 2025-03-09 16:33:05 -07:00
parent 2e718e15a6
commit 7dc935c6de

View File

@ -180,6 +180,19 @@ export default {
title: "Kick User",
}).then(() => {
this.$emit('send-command', `/kick ${this.user.username}`);
// Also send an admin report to the main website.
this.$emit('report', {
message: {
channel: `n/a`,
username: this.user.username,
at: new Date(),
message: 'User kicked from chat by an admin',
},
classification: 'User kicked by admin',
comment: `The chat admin @${this.username} has kicked ${this.user.username} from the room!`,
});
this.cancel();
});
},