Skip to content

Commit

Permalink
Update abusiveUserChecker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Benricheson101 authored Nov 27, 2023
1 parent 523e6b5 commit 4ec2fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/bot/lib/services/abusiveUserChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class AbusiveUserChecker {
!m.user.bot &&
!m.user.avatar?.startsWith('a_') &&
(this.checkUsername(m.user.username) ||
(m.user.global_name && this.checkUsername(m.user.globalName)))
(m.user.globalName && this.checkUsername(m.user.globalName)))
);

const fromRedis = await this.client.state.abusiveUser.getMany(
Expand Down

0 comments on commit 4ec2fef

Please # to comment.