Skip to content

Commit a3c2bad

Browse files
committed
Actually fixed targets this time
1 parent 0a1379b commit a3c2bad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/java/at/helpch/chatchat/channel/ChatChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public String toString() {
5252
@Override
5353
public Set<User> targets(final @NotNull User source) {
5454

55-
final Predicate<User> filterIgnores = user -> !user.ignoredUsers().contains(source.uuid()) ||
56-
source instanceof ChatUser && source.hasPermission(IgnoreCommand.IGNORE_BYPASS_PERMISSION);
55+
final Predicate<User> filterIgnores = user -> user instanceof ChatUser &&
56+
(!user.ignoredUsers().contains(source.uuid()) || source.hasPermission(IgnoreCommand.IGNORE_BYPASS_PERMISSION));
5757

5858
if (plugin.configManager().channels().defaultChannel().equals(this.name()))
5959
return plugin.usersHolder().users().stream()

0 commit comments

Comments
 (0)