Skip to content

Commit

Permalink
Artemis: Give drivers access to /am edithistory
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Jun 18, 2024
1 parent 8819e60 commit fa2fcbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/chat-plugins/abuse-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ export const commands: Chat.ChatCommands = {
this.refreshPage('abusemonitor-settings');
},
edithistory(target, room, user) {
this.checkCan('globalban');
this.checkCan('lock');
target = toID(target);
if (!target) {
return this.parse(`/help abusemonitor`);
Expand All @@ -1688,7 +1688,7 @@ export const commands: Chat.ChatCommands = {
},
ignoremodlog: {
add(target, room, user) {
this.checkCan('globalban');
this.checkCan('lock');
let targetUser: string;
[targetUser, target] = this.splitOne(target).map(f => f.trim());
targetUser = toID(targetUser);
Expand Down Expand Up @@ -1721,7 +1721,7 @@ export const commands: Chat.ChatCommands = {
this.refreshPage(`abusemonitor-edithistory-${targetUser}`);
},
remove(target, room, user) {
this.checkCan('globalban');
this.checkCan('lock');
let [targetUser, rawNum] = this.splitOne(target).map(f => f.trim());
targetUser = toID(targetUser);
const num = Number(rawNum);
Expand Down Expand Up @@ -2312,7 +2312,7 @@ export const pages: Chat.PageTable = {
return buf;
},
async edithistory(query, user) {
this.checkCan('globalban');
this.checkCan('lock');
const targetUser = toID(query[0]);
if (!targetUser) {
return this.errorReply(`Specify a user.`);
Expand Down

0 comments on commit fa2fcbe

Please sign in to comment.